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

refactor(tree): use field cursors in low-level editing API #19009

Merged

Conversation

yann-achard-MS
Copy link
Contributor

@yann-achard-MS yann-achard-MS commented Dec 29, 2023

The goal of this PR is to change the signature of SequenceFieldEditBuilder.insert so that it takes a single cursor in Field mode instead of an array of cursors in Node mode. The rest of the changes flowed from there, trying to strike a balance between making fewer changes to the code and adopting Field-mode cursors in more places as appropriate/convenient.

Breaking Changes

This PR changes internal APIs in ways that make old usages potentially incompatible with the new implementation and makes the old implementation potentially incompatible with new usages. No compatibility attempt has been made since it is expected no host application should be depending on these APIs.

@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 Dec 29, 2023
@github-actions github-actions bot added the public api change Changes to a public API label Dec 29, 2023
@msfluid-bot
Copy link
Collaborator

msfluid-bot commented Dec 29, 2023

@fluid-example/bundle-size-tests: +295 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 742.46 KB 742.49 KB +33 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 541.43 KB 541.44 KB +11 Bytes
loader.js 166.8 KB 166.82 KB +22 Bytes
map.js 559.97 KB 560 KB +22 Bytes
matrix.js 658.21 KB 658.23 KB +22 Bytes
odspDriver.js 90.24 KB 90.26 KB +22 Bytes
odspPrefetchSnapshot.js 41.82 KB 41.83 KB +11 Bytes
sharedString.js 676.93 KB 676.95 KB +22 Bytes
sharedTree.js 791.46 KB 791.58 KB +119 Bytes
Total Size 4.29 MB 4.29 MB +295 Bytes

Baseline commit: 66e3067

Generated by 🚫 dangerJS against f59a958

@yann-achard-MS yann-achard-MS marked this pull request as ready for review December 29, 2023 17:33
@yann-achard-MS yann-achard-MS requested review from a team as code owners December 29, 2023 17:33
packages/dds/tree/src/test/utils.ts Outdated Show resolved Hide resolved
Co-authored-by: Jenn <jennle@microsoft.com>
@yann-achard-MS yann-achard-MS enabled auto-merge (squash) December 29, 2023 17:43
@yann-achard-MS yann-achard-MS merged commit ada710f into microsoft:main Dec 29, 2023
27 checks passed
@yann-achard-MS yann-achard-MS deleted the insert-field-mode-cursors branch December 29, 2023 18:33
daesunp added a commit that referenced this pull request Jan 3, 2024
## Description

This PR unskips the end to end chunk insert op test, as it is now
working due to [PR
19009](#19009).
RishhiB pushed a commit to RishhiB/FluidFramework-1 that referenced this pull request Jan 3, 2024
RishhiB pushed a commit to RishhiB/FluidFramework-1 that referenced this pull request Jan 3, 2024
## Description

This PR unskips the end to end chunk insert op test, as it is now
working due to [PR
19009](microsoft#19009).
sonalideshpandemsft pushed a commit that referenced this pull request Apr 12, 2024
## Description

This PR unskips the end to end chunk insert op test, as it is now
working due to [PR
19009](#19009).
sonalideshpandemsft pushed a commit that referenced this pull request Apr 15, 2024
## Description

This PR unskips the end to end chunk insert op test, as it is now
working due to [PR
19009](#19009).
sonalideshpandemsft pushed a commit that referenced this pull request Apr 15, 2024
## Description

This PR unskips the end to end chunk insert op test, as it is now
working due to [PR
19009](#19009).
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 public api change Changes to a public API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants