Skip to content

Draft: Moved draft notes publishing to be async

Phil Hughes requested to merge ph/publishDraftPerformance into master

What does this MR do and why?

This moves the creation of notes from draft notes to be done inside of a worker. This speeds up the publish endpoint substantially, taking a request that could take seconds to now only taking a few 100ms.

There is a UX change here in that review comments don't all get removed when the publish request finishes, we remove them once the backend has converted the draft note into the normal note.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
Screenshot_2023-10-27_at_12.01.13 Screenshot_2023-10-27_at_12.15.27

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Phil Hughes

Merge request reports