Repository navigation
Keep contribution readings atomic during control lookup - #1832
Merged
Merged
Conversation
A command availability check can ask for its retained control while a contribution is being normalized. Settling the previous registration from that lookup reentered annotation presentation with a partial reading, so margin options opened and closed within one script. Hold delivery until the complete contribution has been published; a unit test pins the transaction and the projected rewrite browser case now passes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Keep a contribution's next reading together while its command checks a retained control. #1788 made command availability consult those controls; during draft projection, that lookup could settle a pending contribution update before normalization finished. The margin then painted an intermediate option state and reversed it in the same script.
The new runtime test fails before the guard with a listener seeing the old
idleentry during the read, then the finalengagedentry. With the guard, it sees only the complete reading. The failing render-gate case also passes locally; four draft cases, two margin cases, all 223 runtime tests, and the changed files' pre-commit checks pass.Refs #1592. The separate failures from that full run are being addressed through other changes; this PR fixes the contribution reentry cause.