-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
DocumentMigrator: support downward migrations #150301
Labels
Epic:ZDTmigrations
Zero downtime migrations
Feature:Migrations
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Comments
pgayvallet
added
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Feature:Migrations
Epic:ZDTmigrations
Zero downtime migrations
labels
Feb 6, 2023
This was referenced Feb 6, 2023
pgayvallet
added a commit
that referenced
this issue
Feb 8, 2023
Related to #150301 This PR tend to do some preliminary cleanup before diving into the actual implementation. I'm mostly extracting things from the (way too big and hard to read) document migrator, to increase readability, maintainability and testability (note: I did not add additional unit test for the extracted files, as I did not change the impl and as we'll be rewriting them all soon enough - it would just have been a loss of time) - Move the document migrator from `packages/core/saved-objects/core-saved-objects-migration-server-internal/src/core` to it's dedicated folder `document_migrator` folder - Extract all the bits not directly performing the document transformation (e.g building the migration map, validation, utils) to their dedicated files - Only moving things around. No concrete code (apart from types) was modified, to ease managing conflicts with #150443
pgayvallet
added a commit
that referenced
this issue
Feb 15, 2023
## Summary Part of #150301 - Add logic to converts model version transformations to the format used by the document migrator - Use in when preparing migration data for the document migrator - Improve the migration validation logic to take model versions into account (and clean it) --------- Co-authored-by: kibanamachine <[email protected]>
justinkambic
pushed a commit
to justinkambic/kibana
that referenced
this issue
Feb 23, 2023
…0842) ## Summary Part of elastic#150301 - Add logic to converts model version transformations to the format used by the document migrator - Use in when preparing migration data for the document migrator - Improve the migration validation logic to take model versions into account (and clean it) --------- Co-authored-by: kibanamachine <[email protected]>
pgayvallet
added a commit
that referenced
this issue
Apr 3, 2023
…53921) ## Summary Fix #150301 Implements `DocumentMigrator.transformDown` and the associated transformation pipeline. Note: The feature is currently unused, and will only be when we'll start #150312 --------- Co-authored-by: kibanamachine <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Epic:ZDTmigrations
Zero downtime migrations
Feature:Migrations
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Part of #150296
Depends on #150297
The global idea is to be able to have a compatibility layer between the old and new migrations, so that the migrator doesn't need to hold the logic to handle each individual migration source.
We also need to figure out what to do with the
coreMigrationVersion
. This will need to switch to decoupled versioning too, and we need to think about when we need to downward migration core version (likely only rollbacks). This part could be done as a follow-upPRs:
The text was updated successfully, but these errors were encountered: