Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sampling project form error handling #527

Open
jwest60 opened this issue Mar 12, 2021 · 1 comment
Open

Sampling project form error handling #527

jwest60 opened this issue Mar 12, 2021 · 1 comment
Assignees

Comments

@jwest60
Copy link
Contributor

jwest60 commented Mar 12, 2021

You will need to branch off of the scientific-sampling branch.

Currently, when you create a sampling project with missing information or if a server error occurs, the POST request fails silently (the user creating the sampling project does not know that it failed, nor why)

Here is what we want:

  • The user is notified that creation failed (the error message should be different depending on whether this is a 422 or a 500 error)
  • If the error response code is 422 (missing data), tell the user what information is missing
  • Highlight form elements that are missing in red
@almasaeed2010
Copy link
Contributor

  • alert for alerting the alerting the user
  • promises and async
  • axios: error handling
  • Look at code examples in our codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants