-
Notifications
You must be signed in to change notification settings - Fork 535
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
Move transaction event #23218
base: main
Are you sure you want to change the base?
Move transaction event #23218
Conversation
33fdc75
to
1cb9ca6
Compare
event.type === "replace" && | ||
getChangeReplaceType(event) !== "transactionCommit" | ||
getChangeReplaceType(event) === "rebase" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change here is purely cosmetic, as there are only two possible results from getChangeReplaceType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Coverage Summary
↓ packages.dds.tree.src.shared-tree:
Line Coverage Change: -0.01% Branch Coverage Change: -0.07%
Metric Name | Baseline coverage | PR coverage | Coverage Diff |
---|---|---|---|
Branch Coverage | 91.64% | 91.57% | ↓ -0.07% |
Line Coverage | 97.47% | 97.46% | ↓ -0.01% |
Baseline commit: a7bef9a
Baseline build: 310141
Happy Coding!!
Code coverage comparison check passed!!
⯆ @fluid-example/bundle-size-tests: -57 Bytes
Baseline commit: a7bef9a |
Description
Move a segment of code in TreeCheckout that updates the detached field index. Rather than doing it in response to a branch change event, it can be done directly after the checkout commits a transaction. This allows the code to be simpler and more direct.