Skip to content

Fix hasWritePending in op's callback#205

Open
gkubisa wants to merge 3 commits into
share:masterfrom
Teamwork:fix-hasWritePending-in-op-callback
Open

Fix hasWritePending in op's callback#205
gkubisa wants to merge 3 commits into
share:masterfrom
Teamwork:fix-hasWritePending-in-op-callback

Conversation

@gkubisa

@gkubisa gkubisa commented Apr 24, 2018

Copy link
Copy Markdown
Contributor

doc.hasWritePending() should be false in the op's callback after the last operation is complete.

Additionally, checking for this.inflightOp first in this.inflightOp && this.inflightOp.callbacks avoids a TypeError which would happen, if this _otApply failed and caused a hard rollback. Unfortunately, I don't have a test for this situation, as it's a rather obscure edge case.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 96.163% when pulling 3b17141 on Teamwork:fix-hasWritePending-in-op-callback into ea5053b on share:master.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 96.163% when pulling 3b17141 on Teamwork:fix-hasWritePending-in-op-callback into ea5053b on share:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.002%) to 96.163% when pulling 3b17141 on Teamwork:fix-hasWritePending-in-op-callback into ea5053b on share:master.

@coveralls

coveralls commented Apr 24, 2018

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.3%) to 96.212% when pulling e117022 on Teamwork:fix-hasWritePending-in-op-callback into 68bde00 on share:master.

@gkubisa

gkubisa commented Jun 11, 2018

Copy link
Copy Markdown
Contributor Author

@nateps @ericyhwang , could you provide some feedback on this PR, or merge it, if it's all good, please?

@ericyhwang

Copy link
Copy Markdown
Contributor

Nate from the PR review meeting:

Makes sense. I'll need to read through the rest of the code offline to check a few things [before merging].

@curran

curran commented Jul 22, 2020

Copy link
Copy Markdown
Contributor

Suggest to close as stale.

@curran curran mentioned this pull request Oct 21, 2020
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.

4 participants