frontend: show backend validation details for 400 errors#404
Open
Bhawna109 wants to merge 3 commits intohatnote:masterfrom
Open
frontend: show backend validation details for 400 errors#404Bhawna109 wants to merge 3 commits intohatnote:masterfrom
Bhawna109 wants to merge 3 commits intohatnote:masterfrom
Conversation
Open
…ackend-400-errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes issue #400 by addressing both parts of the problem:
Frontend Fix
Updated frontend/src/services/alertService.js to prioritize backend error payloads:
Result: users now see actionable backend validation messages instead of only:
Request failed with status code 400.
Backend Fix
Updated montage/juror_endpoints.py:
Result: ranking rounds with more than 100 entries can submit full ballots as required by backend ranking validation.
Scope
Testing
Production Verification Note
I attempted to verify on the linked Toolforge campaign from issue #400, but my account was redirected to
#/permission-deniedfor that route.So I could not fully execute the affected ranking flow on production data.
Please verify this PR on the original campaign/round with coordinator/juror permissions.