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

Edit submissions are being rejected #266

Open
ericyoungberg opened this issue Apr 5, 2019 · 1 comment
Open

Edit submissions are being rejected #266

ericyoungberg opened this issue Apr 5, 2019 · 1 comment
Labels

Comments

@ericyoungberg
Copy link
Contributor

If you grep the production log for 400 Bad Request, you will find that there are many errors regarding edit submissions. I haven't confirmed if this is only occurring for unverified users who are creating new developments, but that is the initial case where this issue was brought to our attention.

When the issue occurs, we receive a JSONAPI blob from the front-end, but we never fire a database query for inserting the edit into the database. This leads me to believe that we are having an issue inside of Rails where the edit is being rejected and shooting off a 400 error.

@smithWEBtek smithWEBtek self-assigned this Sep 5, 2019
@mzagaja
Copy link
Contributor

mzagaja commented Sep 16, 2019

It is the case that the user is not getting feedback when the edit is rejected.

This is because Rails is not getting existing form data for validation.
The validation then fails, without informing the user.

Steps to recreate:

  1. Create user or login
  2. Create new development
  3. Complete form, and required fields
  4. Click "Save and Close"
  5. Click create Development again.
  6. Form will contain previously entered data.
  7. At this point, you have to change something to activate the Submit for Review button.
  8. Click Submit for Review
  9. Open developer console, see network tab, see Rails validation errors in the response.
  • Rails errors do not feedback to the user.
  • Submission fails despite being valid.
  • Submit for Review button not available to user, despite having necessary form data.

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

No branches or pull requests

3 participants