Add handling errors in a merge requests diff fetching process
What does this MR do?
This MR add a behaviour of handling errors on diff fetching process.
An issue #52685 (moved) describe a problem of handling errors on frontend when a response of diff fetching isn't successful.
In particular a diff loading spinner is visible if an error is returned.
Probably I take too much upon oneself about adding some new frontend logic without discussion here but I have solved this problem by:
- hiding a diffs loading spinner;
- moving a flash error from top of a page into the diff container;
- adding a refetching diff process by clicking on a flash message;
Perhaps my path of resolving issue isn't correct but I think you will fix me here in this case
Thanks for a future review!
What are the relevant issue numbers?
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated via this MR -
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides -
Link to e2e tests MR added if this MR has Requires e2e tests label. See the Test Planning Process. -
Security reports checked/validated by reviewer