-
Notifications
You must be signed in to change notification settings - Fork 2
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
Analyse and create a "dry run" command in the if feasible #45
Comments
I have an idea/question: |
Usually, changes outside a migration are expected. Not just developers who might be working on a separate migration in parallel, but also content managers continuously working on the main branch. You don't want some of that content to do a time leap because someone ran a migration with dry run. |
I checked to see if there's a way to implement this but the contentful-migrations doesn't expose many internal functions that we could probably re-use to implement something like this. There's an open issue from 4 years ago asking for a similar thing. I think we could implement this if some functions used internally are also exposed by the library. From what I checked, only the For code context, here’s the part of the file that renders the description of changes to the content model: https://github.com/contentful/contentful-migration/blob/a90a8329af0c87a046feae07d78ced1835e69eb0/src/bin/cli.ts#L141 And this is used when the If we decide to fork and extend the library or send a PR, we could add another |
It’s desired to be able to validate a migration plan before we actually execute it. With that we could:
Make sure that the migration will do what is expected.
The text was updated successfully, but these errors were encountered: