-
Notifications
You must be signed in to change notification settings - Fork 532
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
Test/remove i segment deprecations #22696
Draft
anthony-murphy
wants to merge
32
commits into
test/internal-merge-tree-client
Choose a base branch
from
test/remove-ISegment-deprecations
base: test/internal-merge-tree-client
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 14 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
5e747b4
MergeTree: Separate Segment Interfaces Based on Visibility
anthony-murphy d59ee81
Merge branch 'main' of https://github.com/microsoft/FluidFramework in…
anthony-murphy 319e1d4
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 6905f27
remove deprecations
anthony-murphy e11b49c
Merge branch 'main' of https://github.com/microsoft/FluidFramework in…
anthony-murphy fb201de
Merge branch 'main' of https://github.com/microsoft/FluidFramework in…
anthony-murphy d251c2a
Merge branch 'main' of https://github.com/microsoft/FluidFramework in…
anthony-murphy 47bdab0
fix tests
anthony-murphy 3993dfc
Merge branch 'main' into test/remove-ISegment-deprecations
anthony-murphy 37f754c
Merge branch 'main' into test/remove-ISegment-deprecations
anthony-murphy f1586dc
Merge branch 'main' into test/remove-ISegment-deprecations
anthony-murphy c112816
Merge branch 'main' into test/remove-ISegment-deprecations
anthony-murphy cb1c19f
Merge branch 'main' into test/remove-ISegment-deprecations
anthony-murphy f75264d
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 8eb582a
Apply suggestions from code review
anthony-murphy c5d6026
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy a3c4896
remove missed method
anthony-murphy 704f29f
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy f4cf507
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 34d54ad
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 74eda59
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 6575577
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 802a21f
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 0663c9b
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 684644b
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 393f5de
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy f2e2e8d
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy bfeab60
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 525cea2
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 65fd710
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy e3d1a48
Merge branch 'test/internal-merge-tree-client' into test/remove-ISegm…
anthony-murphy 5fc4397
enable type tests
anthony-murphy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ import { assert } from "@fluidframework/core-utils/internal"; | |
import { UsageError } from "@fluidframework/telemetry-utils/internal"; | ||
|
||
import { DoublyLinkedList, ListNode, walkList } from "./collections/index.js"; | ||
import { ISegmentInternal, type ISegment } from "./mergeTreeNodes.js"; | ||
import { type ISegmentInternal } from "./mergeTreeNodes.js"; | ||
import { TrackingGroup, TrackingGroupCollection } from "./mergeTreeTracking.js"; | ||
import { ReferenceType } from "./ops.js"; | ||
import { PropertySet, addProperties } from "./properties.js"; | ||
|
@@ -79,10 +79,6 @@ export interface LocalReferencePosition extends ReferencePosition { | |
addProperties(newProps: PropertySet): void; | ||
} | ||
|
||
/** | ||
* @privateRemarks This should not be exported outside merge tree. | ||
* @internal | ||
*/ | ||
class LocalReference implements LocalReferencePosition { | ||
public properties: PropertySet | undefined; | ||
|
||
|
@@ -226,11 +222,10 @@ export function setValidateRefCount( | |
* Represents a collection of {@link LocalReferencePosition}s associated with one segment in a merge-tree. | ||
* @sealed | ||
* | ||
* @legacy | ||
* @alpha | ||
* @internal | ||
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Non-deprecated class is being removed from legacy API |
||
export class LocalReferenceCollection { | ||
public static append(seg1: ISegment, seg2: ISegment): void { | ||
public static append(seg1: ISegmentInternal, seg2: ISegmentInternal): void { | ||
if (seg2.localRefs && !seg2.localRefs.empty) { | ||
if (!seg1.localRefs) { | ||
seg1.localRefs = new LocalReferenceCollection(seg1); | ||
|
@@ -249,7 +244,7 @@ export class LocalReferenceCollection { | |
validateRefCount?.(seg2.localRefs); | ||
} | ||
|
||
public static setOrGet(segment: ISegment): LocalReferenceCollection { | ||
public static setOrGet(segment: ISegmentInternal): LocalReferenceCollection { | ||
return (segment.localRefs ??= new LocalReferenceCollection(segment)); | ||
} | ||
|
||
|
@@ -260,7 +255,7 @@ export class LocalReferenceCollection { | |
/** | ||
* The segment this `LocalReferenceCollection` is associated with. | ||
*/ | ||
private readonly segment: ISegment, | ||
private readonly segment: ISegmentInternal, | ||
initialRefsByfOffset: (IRefsAtOffset | undefined)[] = Array.from({ | ||
length: segment.cachedLength, | ||
}), | ||
|
@@ -460,7 +455,7 @@ export class LocalReferenceCollection { | |
* | ||
* @remarks This method should only be called by mergeTree. | ||
*/ | ||
public split(offset: number, splitSeg: ISegment): void { | ||
public split(offset: number, splitSeg: ISegmentInternal): void { | ||
if (this.empty) { | ||
// shrink the offset array when empty and splitting | ||
this.refsByOffset.length = offset; | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
waiting to update closer until this can be merged