Naming, scoping, and categorizing migrations #7498
-
Proposed new naming and structureThis is my proposed naming and directory structure for our current migrations based on my research. Would love to hear your thoughts!
OverviewThe migrations in How should we structure migrations to accomplish the following:
Other codemod references: CodeshiftCommunity ScopeWe should revisit the scope of some of our current migrations, narrowing down what they target. For example, we can split current the current One handles replacing the We can then create composed migrations ( Naming conventionThe naming of a migration should be clear so that is is apparent to the user what target is being modified and the action it is performing. Proposed
Alternative
With version
VersioningWe limit the scope of a migration to a specific version–from one API to another. This can be organized with the directory structure and also documented on the
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Love this. I don't have any strong suggestions but this seems logical and scalable to me. |
Beta Was this translation helpful? Give feedback.
-
Love this direction, Sam 🙌🏽 My vote is for the I also like the idea of separating out the function migrations so they're easier for folks to review after running in their apps. We can still group them together in the docs, something like:
|
Beta Was this translation helpful? Give feedback.
-
Huge +1 to what Chloe said! Love this direction Sam!! 🤩🎉❤️🚀✨ The |
Beta Was this translation helpful? Give feedback.
-
Also +1ing Chloe's feedback! I think the proposed Regarding "With versions", I think I prefer Awesome research and breakdown @samrose3!! |
Beta Was this translation helpful? Give feedback.
-
Just following up here with the decided approach. #7606 updates the current migration naming and scope into the following:
|
Beta Was this translation helpful? Give feedback.
Just following up here with the decided approach. #7606 updates the current migration naming and scope into the following: