ENH: Add schema migration support for versioned resources - #298
Merged
Conversation
GibranAlfa
commented
Jul 29, 2026
GibranAlfa
force-pushed
the
migration-manager
branch
5 times, most recently
from
July 31, 2026 14:20
25aa84c to
d874d87
Compare
slangeveld
reviewed
Aug 5, 2026
GibranAlfa
force-pushed
the
migration-manager
branch
from
August 5, 2026 13:15
c5d92db to
764d900
Compare
Collaborator
Author
|
Added a backup for resources that require migration. The exact original JSON is saved under |
slangeveld
reviewed
Aug 6, 2026
GibranAlfa
force-pushed
the
migration-manager
branch
from
August 7, 2026 07:20
86be04d to
911bd2e
Compare
Collaborator
|
Since you change the behavior of the cache (changing max revisions from 5 to 10) in this PR, can you create an issue explaining why this has been done and reference it in the PR description? Then we have it documented for later why we did this. |
Collaborator
Author
|
Yes, I just created the issue and resolved it in the PR desc. |
slangeveld
reviewed
Aug 7, 2026
GibranAlfa
force-pushed
the
migration-manager
branch
from
August 7, 2026 10:44
a44960f to
fc901df
Compare
slangeveld
reviewed
Aug 14, 2026
GibranAlfa
force-pushed
the
migration-manager
branch
from
August 14, 2026 09:45
877cf0b to
fb3d0b2
Compare
slangeveld
reviewed
Aug 14, 2026
slangeveld
approved these changes
Aug 17, 2026
slangeveld
left a comment
Collaborator
There was a problem hiding this comment.
Great work! Thanks for addressing all the comments
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.
Resolves #249
Resolves #305
Most lines are documentation and tests.
Add automatic, forward-only schema migrations for project config, user config, and internal mappings.
.fmu/migration-backups/, with timestamp, model name, and source schema version in the filename.. Backup failures are logged but do not block the save. Users can copy a backup manually when rolling back to an older release.cache_max_revisionsfrom 5 to 10.This also adds maintainer documentation and exports
MigrationErrorfrom the public package API.Related issue in
fmu-settings-apiis made to update the API to catchMigrationErrorproperly.Checklist
--cov=src/ --cov-report term-missing)