Graceful degradation for Branches controller
What does this MR do and why?
Contributes to #340817 (closed)
Problem
We return a 500 error page when Gitaly is not available. It is not a great user experience.
Solution
Handle Gitaly exception and successfully render the page with an error message block.
Screenshots or screen recordings
How to set up and validate locally
- Go to project page
- Click on Branches link (should be something like https://gitlab.com/gitlab-org/gitlab/-/branches)
- Stop gitaly process
gdk stop gitaly
- Refresh the page
- Verify that page successfully loads and shows an error message
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mike Nichols