developmentseed / developmentseed/scoreboard

Create team form fails silently when api call errors

Open
#580 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
27
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.