-
Notifications
You must be signed in to change notification settings - Fork 0
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
CRIMRE-374 address error handling, pages and reporting #330
Conversation
8fd1c35
to
c841d07
Compare
Remove rails default error pages Use rails 7 error handling and reporting
c841d07
to
1c174e3
Compare
When logged in as a caseworker, if users come across a missing crime application, we do display the primary navigation. However, I prefer not to include the primary navigation on other error pages due to its dependency on database requests. |
Sorry, Ive annoyingly updated my previous comment. I realised that the ACs said we wanted the link to all open applications which would solve my issue with navigation - but the page rendered isn't that one, so something isn't quite right |
It's routing to page not found, not application not found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks looks really good - have have added a few non-blocking comments for you to consider :)
end | ||
|
||
it 'shows the application' do | ||
expect(page).to have_content 'AJ 12 34 56' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might need to change this if it is a nino as I just merged that nino change sorry 😬
Description of change
Simplify all but application_not_found error page to reduce risk of error loops.
Ensure error pages do not render flash messages by default.
User errors controller to render all application and middleware errors.
Link to relevant ticket
CRIMRE-374
Notes for reviewer
Screenshots of changes (if applicable)
Before changes:
After changes:
How to manually test the feature
See ticket for criteria.
To render the error pages in development for testing add the following line to config/environments/development.rb