[B2BTEAM-3599] Introducing major-based schema - #88
Open
wender wants to merge 2 commits into
Open
Conversation
|
Beep boop 🤖 I noticed you didn't make any changes at the
In order to keep track, I'll create an issue if you decide now is not a good time
|
|
Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖 Please select which version do you want to release:
And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.
|
enzomerca
approved these changes
Jul 13, 2026
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.
What problem is this solving?
When two different major versions of
b2b-quotes-graphqlare installed in the same VTEX account, they share a single VBase key (settings) for Master Data schema auto-sync. Each major has different schema definitions and versions, so they produce different hashes. Each major overwrites the other's hash on every request, causing an infinite schema sync loop.Additionally, major 4 was still using the legacy schema version
v1.3, which could be overwritten or conflict with schemas from other installed majors.This change:
settings-v{N}, e.g.settings-v4)v4.3to align with app major 4B2B_USER_SCHEMA_VERSIONatv0.1.2(read-only reference tob2b-organizations; future migration tov3.1.2is out of scope)How to test it?
Workspace
vtex linkcheckConfig(e.g.getAppSettingsorgetQuotesGraphQL query)settings-v4exists in bucketb2b-quotes-graphql(legacysettingskey is intentionally left untouched)v4.3exists for entityquotesvia MD APISCHEMA_VERSIONsettings-v{N}key without interfering with the otherScreenshots or example usage: