Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch patchDocument from task to enqueueTask #454

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

jeffdaley
Copy link
Contributor

Makes the patchDocument task enqueue-able to handle instances where two patches fire at once, corrupting the document. If an EditableField is open and has changes, clicking the "change status" button (e.g., "Move to approved") will trigger two patch calls: one to save the EditableField change; the other to save the status. Now, Hermes waits for the first task to finish before starting the second.

@jeffdaley jeffdaley marked this pull request as ready for review November 28, 2023 17:26
@jeffdaley jeffdaley requested a review from a team as a code owner November 28, 2023 17:26
Copy link
Contributor

@jfreda jfreda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@jeffdaley jeffdaley merged commit ad28608 into main Nov 28, 2023
2 checks passed
@jeffdaley jeffdaley deleted the jeffdaley/approvers-bug branch November 28, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants