-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
IMP] developer/reference/cli: add --pre-upgrade-scripts, improve --upgrade-path #12528
Conversation
62215d3
to
b7c4e5a
Compare
content/developer/reference/cli.rst
Outdated
@@ -94,6 +94,12 @@ Running the server | |||
|
|||
specify an additional upgrade path. | |||
|
|||
.. option:: --pre-upgrade-scripts <pre_upgrade_scripts> | |||
|
|||
specify upgrade scripts to be run before loading base module when an upgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specify upgrade scripts to be run before loading base module when an upgrade | |
comma-separated list of path to upgrade scripts to be run before loading base module when an upgrade |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed an extra commit to improve the docs of --upgrade-path
that was very thin... to say the least :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robodoo delegate+
0fcb216
to
2d4d8ab
Compare
@aj-fuentes Just don't forget to adapt your commits because they don't make sense in this context and repo ;) |
Hi @AntoineVDV, I don't know what makes sense here :) Would you give a suggestion please? |
@aj-fuentes Same logic as in other repos, I'd say, so something like: "[IMP] developer/cli: document It makes it easier to figure out what we're looking at when navigating the commit history of the developer doc, otherwise it'd just be a bunch of "[IMP] core" commits, since all odoo/odoo framework commits look alike. |
Document the new cli option.
Be explicit about what we expect as parameter.
2d4d8ab
to
97fadd8
Compare
OK, done. |
@robodoo r+ |
@aj-fuentes because this PR has multiple commits, I need to know how to merge it:
|
@robodoo rebase-ff |
Merge method set to rebase and fast-forward. |
Upgrade scripts are run only when there is an update of the module version. This is not flexible enough. After a major upgrade developers need to upgrade their custom modules. Unfortunately the tools in `upgrade-util` repo that modify modules (`merge_module`, `rename_module`, ...) should be done before loading base module. The latter is already upgraded after a major upgrade thus no upgrade scripts are run for it. In this patch we add a mechanism to run specific upgrade scripts before loading base. closes #202014 Related: odoo/documentation#12528 Signed-off-by: Christophe Simonis (chs) <[email protected]> Co-authored-by: Christophe Simonis <[email protected]>
Document the new cli option. Part-of: #12528 Related: odoo/odoo#202014 Signed-off-by: Alvaro Fuentes Suarez (afu) <[email protected]>
Be explicit about what we expect as parameter. closes #12528 Related: odoo/odoo#202014 Signed-off-by: Alvaro Fuentes Suarez (afu) <[email protected]>
Upgrade scripts are run only when there is an update of the module version. This is not flexible enough. After a major upgrade developers need to upgrade their custom modules. Unfortunately the tools in `upgrade-util` repo that modify modules (`merge_module`, `rename_module`, ...) should be done before loading base module. The latter is already upgraded after a major upgrade thus no upgrade scripts are run for it. In this patch we add a mechanism to run specific upgrade scripts before loading base. closes odoo#202014 Related: odoo/documentation#12528 Signed-off-by: Christophe Simonis (chs) <[email protected]> Co-authored-by: Christophe Simonis <[email protected]>
Upgrade scripts are run only when there is an update of the module version. This is not flexible enough. After a major upgrade developers need to upgrade their custom modules. Unfortunately the tools in `upgrade-util` repo that modify modules (`merge_module`, `rename_module`, ...) should be done before loading base module. The latter is already upgraded after a major upgrade thus no upgrade scripts are run for it. In this patch we add a mechanism to run specific upgrade scripts before loading base. closes odoo#202014 Related: odoo/documentation#12528 Signed-off-by: Christophe Simonis (chs) <[email protected]> Co-authored-by: Christophe Simonis <[email protected]>
[IMP] developer/reference/cli: --pre-upgrade-scripts
Document the new cli option.
[IMP] developer/reference/cli: improve docs of --upgrade-path
Be explicit about what we expect as parameter.