-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
More switches to disable unneeded actions (version change, black, etc) #24
Comments
One more question: Why "removing migrations folders"? In our case, during forwardport migration folder have to be renamed to new serie. For example: 11.0.1.78.0 -> 12.0.1.78.0 |
Migration script are specifics from the version. If you rename the folder, the same code will be executed from 10 to 11 than 11 to 12 and this is an error This is the reason because you need remove migration folder |
Take a look in this point of documentation if --no-commit solve your workflow |
|
For solve 1. you can use hooks in module. If you dont have the 13.0 code, you can not know what code to execute in this version. |
Point 2: I run code from master branch and not reformat code style. I agree with you that you should only correct the code style if you want to. In fact, the author asks for help here. Reformat code must be executed if pre-commit config file exists |
What do you mean hooks? About 13.0 code, yes, it seems that such migration will be executed for all odoo series. In our case, it is related to our versioning scheme: "S.S.V.V.P", where "S.S" - odoo serie, "V.V" module version, "P" - serie-specific patch. Thus same module version could be available for multiple odoo series. And in case, when we forward-port changes from 12.0 to 13.0, we do not want to start versioning from 1.0.0, instead we want to keep same version. Also, in case of migration, during forward-port, they have to be reviewed manually and adapted (if needed) to next odoo serie. Such versioning scheme allows us to have unified changelogs across multiple odoo series and easily track what feature in what version (independent of serie) was introduced. So, i think it would be nice to have a switch (option) to disable automatic removal of migrations. So, currently, i am thinking about the way to use this project in our workflows, may be integrate it with odoo-helper-scripts. Ideally, i would like to have some console utils which i can install via pip and run for some module, to find and fix pieces of code that have to be migrated (from 12.0 to 13.0, etc), like usage of From my point of few, there have to be some core entity of this project, that will do only migration of module (no version change, no formatting, no migration removal, etc). And there have to be the way to use (for example import from another python module) only this core entity. |
I understand. Thanks for explanation. IMO, for take into account this proposition, the authod must approbe this request. For problems related with black I recent send this PR |
Hi,
Thanks for this interesting project) It is looking as a nice way to automate module migration routines, but i have the question.
Is it possible to avoid applying Black to code? The reason is, i would like to try to use this project in forward-ports workflow, but we try to do minimum changes during forwardport. So, Black may introduce a lot of unneeded changes in git. Also, forward-ports are repeatable actions, because 90% of our modules we develop on 11.0 branch and then periodically forward-port changes to 12.0 and 13.0 branches.
My expectations after running module migration is following:
The text was updated successfully, but these errors were encountered: