Skip to content

Conversation

@CraigMacomber
Copy link
Contributor

Description

Rename and better document allowsTreeSupersetOf

Reviewer Guidance

The review process is outlined on this wiki page.

@CraigMacomber CraigMacomber requested a review from a team as a code owner November 19, 2025 01:16
@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 19, 2025
Copy link
Contributor

@jumyhre jumyhre left a comment

Choose a reason for hiding this comment

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

couple minor typos in the comment block for allowedMonotonicUpgrade, but looks good otherwise

* True if a client should be able to {@link TreeView.upgradeSchema} from a field schema using this field kind and `originalTypes` to `superset`.
* @remarks
* Used by {@link FlexFieldKind.allowsFieldSuperset}, which handles the `never` cases before calling this.
* Must return false if such an upgrade could violate and invariants of `superset` any document which is compatible with this + `originalTypes`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Must return false if such an upgrade could violate and invariants of `superset` any document which is compatible with this + `originalTypes`.
* Must return false if such an upgrade could violate any invariants of `superset` any document which is compatible with this + `originalTypes`.

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