When publishing a MR Review ensure MR Drafts are replaced immediately by the published comments
Problem to solve
When publishing MR Reviews sometimes the Drafts (orange comment boxes) disappear before the comment show up.
We suspect it's due to re-requesting discussions.json upon publishing.
User experience goal
Draft notes are replaced immediately by their final comments without any time gap.
Proposal
Either:
- Make the publish request return the response we need to compose the final comments (provided by discussions.json) — backend and frontend
or
- Ensure the drafts are only erased when discussions.json is successful frontend (for now, aiming at this)
or
- Something else that accomplishes the same UX goal