Observe async MR preparation to dynamically load the diffs content
What does this MR do and why?
For #398557 (closed)
When an MR is being prepared asynchronously, the changes in this MR listen for that preparation and then refresh the content when it is ready.
This avoids user confusion and a poor UX.
Notably, the code changes here prepare the Code Review part of the app (Notes, Diffs, any future things) to share a single signaling infrastructure.
Screenshots or screen recordings
There is no before because the "before" is just an indefinite spinner and no UI changes.
With the changes in this branch, it looks like:
How to set up and validate locally
- Add
sleep(1.minute)
here - Create a new MR
- Once you create the MR, immediately switch to the
Changes
tab - Wait for ~1 minute
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 Thomas Randolph