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

Move transaction event #23218

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

noencke
Copy link
Contributor

@noencke noencke commented Nov 27, 2024

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.

@noencke noencke requested a review from a team as a code owner November 27, 2024 05:25
@github-actions github-actions bot added area: dds Issues related to distributed data structures area: dds: tree base: main PRs targeted against main branch labels Nov 27, 2024
event.type === "replace" &&
getChangeReplaceType(event) !== "transactionCommit"
getChangeReplaceType(event) === "rebase"
Copy link
Contributor Author

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

@noencke noencke requested a review from jenn-le November 27, 2024 05:31
Copy link
Collaborator

@msfluid-bot msfluid-bot left a 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 NameBaseline coveragePR coverageCoverage 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!!

@msfluid-bot
Copy link
Collaborator

@fluid-example/bundle-size-tests: -57 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 467.08 KB 467.11 KB +35 Bytes
azureClient.js 563.85 KB 563.9 KB +49 Bytes
connectionState.js 724 Bytes 724 Bytes No change
containerRuntime.js 263.27 KB 263.29 KB +14 Bytes
fluidFramework.js 429.07 KB 428.94 KB -137 Bytes
loader.js 134.18 KB 134.19 KB +14 Bytes
map.js 42.71 KB 42.71 KB +7 Bytes
matrix.js 150.15 KB 150.16 KB +7 Bytes
odspClient.js 530.45 KB 530.5 KB +49 Bytes
odspDriver.js 98.65 KB 98.67 KB +21 Bytes
odspPrefetchSnapshot.js 43.04 KB 43.05 KB +14 Bytes
sharedString.js 166.23 KB 166.24 KB +7 Bytes
sharedTree.js 419.53 KB 419.39 KB -144 Bytes
Total Size 3.38 MB 3.38 MB -57 Bytes

Baseline commit: a7bef9a

Generated by 🚫 dangerJS against 1cb9ca6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: dds: tree area: dds Issues related to distributed data structures base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants