feat(tree): runtime schema upgrade mechanism#27542
Open
jenn-le wants to merge 6 commits into
Open
Conversation
Contributor
|
Hi! Thank you for opening this PR. Want me to review it? Based on the diff (572 lines, 8 files), I've queued these reviewers:
How this works
|
Contributor
|
🔗 No broken links found! ✅ Your attention to detail is admirable. linkcheck output |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Adds runtime support for enabling selected staged schema upgrades in SharedTree.
This updates
TreeView.initializeandTreeView.upgradeSchemato accept an optionalupgradesproperty bag. Applications can use this to control when staged schema upgrades are included in stored schema, which makes it easier to separate code rollout from schema rollout and to test future document shapes before enabling them broadly.This also adds test coverage for enabling staged allowed type upgrades and staged optional field upgrades through the new API parameter.
Reviewer Guidance
The review process is outlined on this wiki page.
The main area to review is the runtime schema upgrade path in SharedTree, especially the handling of explicit upgrade targets when the default schema compatibility result is already equivalent.