-
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
MergeTree: Remove Partial IRemovalInfo and IMoveInfo from Segments #23406
Conversation
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.
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
e1f0e80
to
a5b6b79
Compare
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output
|
if (markerId) { | ||
this.idToMarker.set(markerId, newSegment); | ||
} | ||
for (const newSegment of newSegments |
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.
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 |
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.
related to AB#15630?
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.