scoreboard icon indicating copy to clipboard operation
scoreboard copied to clipboard

Create team form fails silently when api call errors

Open guidorice opened this issue 4 years ago • 0 comments

There are database unique constraints on the osm-teams team.name and team.hashtag columns. To reproduce this issue, just go to /create-team and enter some values that already exist in the team table. The api returns a 400 error but the create team UI does not display any validation, it instead redirects to the teams index.

  • [ ] make hashtag nullable (currently unique constraint prevents that)
  • [ ] add client side validation to all create team form fields
  • [ ] catch and display proper error message when API call fails, instead of redirecting to teams index page.

guidorice avatar May 07 '20 20:05 guidorice