Ensure resolved message appears the same time the `applied` suggestion appears
In this MR, !46203 (merged), this fixed the issue of the suggestion re-appearing even though it's the suggestion is still loading. The solution was to pause the notes polling when the suggestion is clicked. And once it's indeed applied, the notes polling restarting. However, due to the slight delay, the resolved message seems to be out of sync when the applied
button appears.
(note the network is throttled, that's why it's reacting soooo slow
Polling stopped | Polling resumes |
---|---|
Further notes for implementation
This might involve preemptively setting the discussion as resolved as we're waiting for the suggestion to be applied and then handling any error to remove the success message instead of waiting for the network request to come back with the next polling request.
Edited by André Luís