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

MergeTree: Remove Partial IRemovalInfo and IMoveInfo from Segments #23406

Merged
merged 4 commits into from
Jan 2, 2025

Conversation

anthony-murphy
Copy link
Contributor

This is further refactoring which will aid in the eventual removal of the deprecated properties from ISegment. This change removed the partial implementation of IRemovalInfo and IMoveInfo from ISegmentPrivate which forces consistent access to those infos via the typeguards and helpers for the associated infos. This consistent access also ensures strong typing, and correct handling for optional vs required properties.

@Copilot Copilot bot review requested due to automatic review settings December 27, 2024 20:29
@anthony-murphy anthony-murphy requested review from a team as code owners December 27, 2024 20:29
@github-actions github-actions bot added area: dds Issues related to distributed data structures public api change Changes to a public API base: main PRs targeted against main branch labels Dec 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 15 changed files in this pull request and generated no comments.

Files not reviewed (10)
  • packages/dds/merge-tree/src/test/client.applyMsg.spec.ts: Evaluated as low risk
  • packages/dds/merge-tree/src/test/index.ts: Evaluated as low risk
  • packages/dds/merge-tree/src/test/testClient.ts: Evaluated as low risk
  • packages/dds/merge-tree/src/test/reconnectHelper.ts: Evaluated as low risk
  • packages/dds/merge-tree/src/test/mergeTree.markRangeRemoved.spec.ts: Evaluated as low risk
  • packages/dds/merge-tree/src/snapshotV1.ts: Evaluated as low risk
  • packages/dds/merge-tree/src/segmentInfos.ts: Evaluated as low risk
  • packages/dds/merge-tree/src/snapshotlegacy.ts: Evaluated as low risk
  • packages/dds/merge-tree/api-report/merge-tree.legacy.alpha.api.md: Evaluated as low risk
  • packages/dds/merge-tree/src/partialLengths.ts: Evaluated as low risk
Copy link
Contributor

🔗 No broken links found! ✅

Your attention to detail is admirable.

linkcheck output


> fluid-framework-docs-site@0.0.0 ci:check-links /home/runner/work/FluidFramework/FluidFramework/docs
> start-server-and-test "npm run serve -- --no-open" 3000 check-links

1: starting server using command "npm run serve -- --no-open"
and when url "[ 'http://127.0.0.1:3000' ]" is responding with HTTP status code 200
running tests using command "npm run check-links"


> fluid-framework-docs-site@0.0.0 serve
> docusaurus serve --no-open

[SUCCESS] Serving "build" directory at: http://localhost:3000/

> fluid-framework-docs-site@0.0.0 check-links
> linkcheck http://localhost:3000 --skip-file skipped-urls.txt

Crawling...

Stats:
  170142 links
    1596 destination URLs
    1825 URLs ignored
       0 warnings
       0 errors


if (markerId) {
this.idToMarker.set(markerId, newSegment);
}
for (const newSegment of newSegments
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i recommend turning off whitespace diff, as this change is small, but removed a layer of nesting so lot of whitespace churn.

@@ -706,7 +709,10 @@ export class PartialSequenceLengths {

const hasOverlap = moveInfo.movedClientIds.length > 1;
moveClientOverlap = hasOverlap ? moveInfo.movedClientIds : undefined;
} else if (segment.wasMovedOnInsert) {
} // BUG BUG: something fishy here around how/when move info is passed or not
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to AB#15630?

@github-actions github-actions bot removed the public api change Changes to a public API label Jan 2, 2025
@anthony-murphy anthony-murphy enabled auto-merge (squash) January 2, 2025 18:25
@anthony-murphy anthony-murphy merged commit 85edf94 into microsoft:main Jan 2, 2025
26 checks passed
@anthony-murphy anthony-murphy deleted the info-only branch January 2, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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