Repository navigation
Conversation
Rack still maps this status symbol to HTTP 422. The rename clears the rspec-rails have_http_status deprecation without changing responses. Co-authored-by: rsmoke <rsmoke@umich.edu>
…ity-6382 Replace deprecated :unprocessable_entity with :unprocessable_content
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the HTTP 422 status-symbol update.
No open issues 🎉
What changed in this PR
Replaces the deprecated :unprocessable_entity status symbol with :unprocessable_content across the Rails application, preserving HTTP 422 responses.
Changes:
- Updates controller error responses for HTML, JSON, and Turbo Stream requests.
- Aligns Devise’s responder error status with the new symbol.
- Updates bulk judging window specs to use the matching status expectation.
| File | Description |
|---|---|
spec/controllers/bulk_judging_windows_controller_spec.rb |
Updates four error-status expectations. |
config/initializers/devise.rb |
Updates Devise’s responder error status. |
app/controllers/visibilities_controller.rb |
Updates create and update failure statuses. |
app/controllers/schools_controller.rb |
Updates create and update failure statuses. |
app/controllers/roles_controller.rb |
Updates create and update failure statuses. |
app/controllers/profiles_controller.rb |
Updates create and update failure statuses. |
app/controllers/judging_rounds_controller.rb |
Updates save, date-validation, and ranking error statuses. |
app/controllers/entry_rankings_controller.rb |
Updates creation, lookup, and assignment error statuses. |
app/controllers/entry_awards_controller.rb |
Updates award frame failure statuses. |
app/controllers/entries_controller.rb |
Updates entry and award-outcome failure statuses. |
app/controllers/editable_contents_controller.rb |
Updates content update failure status. |
app/controllers/departments_controller.rb |
Updates create and update failure statuses. |
app/controllers/contest_instances_controller.rb |
Updates create and update failure statuses. |
app/controllers/contest_descriptions_controller.rb |
Updates HTML and Turbo Stream failure statuses. |
app/controllers/containers_controller.rb |
Updates HTML and Turbo Stream failure statuses. |
app/controllers/class_levels_controller.rb |
Updates create and update failure statuses. |
app/controllers/categories_controller.rb |
Updates create and update failure statuses. |
app/controllers/campuses_controller.rb |
Updates create and update failure statuses. |
app/controllers/bulk_judging_windows_controller.rb |
Updates selection, validation, and bulk-update failure statuses. |
app/controllers/bulk_contest_instances_controller.rb |
Updates date-validation and creation failure statuses. |
app/controllers/bulk_contest_instance_activations_controller.rb |
Updates validation and empty-selection failure statuses. |
app/controllers/awards_controller.rb |
Updates create and update failure statuses. |
app/controllers/assignments_controller.rb |
Updates HTML and Turbo Stream creation failure statuses. |
app/controllers/application_questions_controller.rb |
Updates save and reorder failure statuses. |
app/controllers/addresses_controller.rb |
Updates create and update failure statuses. |
app/controllers/address_types_controller.rb |
Updates create and update failure statuses. |
Review effort: Balanced
This branch was successfully deployed
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.
No description provided.