Skip to content
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

Analysis - rename repositories and module #248

Closed
robinkeunen opened this issue Jul 13, 2021 · 0 comments
Closed

Analysis - rename repositories and module #248

robinkeunen opened this issue Jul 13, 2021 · 0 comments
Assignees

Comments

@robinkeunen
Copy link
Member

robinkeunen commented Jul 13, 2021

We first mapped the module dependencies.
- cf #247
- cf coopiteasy/vertical-cooperative#170

This will be used to prioritise the module migration. We will start by the root modules.

We took these three cases to explore the migration scripts and estimate the time needed for migration.


Following our investigations, here is the selected solution :

We will use update_module_names function from openupgradelib.

In openupgrade this function is used when updating the base module : here. The base module is always the first to be updated as all module depends of it. So this rename function is run before any action take place. This can't be applied in our context.

Therefore, we will create a script rename_deprecated_modules.py for the entire repository that will be run in an odoo shell before every updade. That script calls the rename function of openupgradelib.

With the modules and depending datas renamed, the update of the module will

  1. run the pre-update and post-update hooks
  2. update all the data from the new module and its dependencies.
@polchampion polchampion moved this to Scheduled - within a month in old - Moving Easy My Coop to OCA (Komunigi) Jan 20, 2022
@polchampion polchampion moved this from Scheduled - within a month to In progress in old - Moving Easy My Coop to OCA (Komunigi) Jan 31, 2022
@robinkeunen robinkeunen changed the title Rename Repositories and module Analysis - rename Repositories and module Feb 1, 2022
@robinkeunen robinkeunen changed the title Analysis - rename Repositories and module Analysis - rename repositories and module Feb 1, 2022
@robinkeunen robinkeunen changed the title Analysis - rename repositories and module t Mar 24, 2022
@robinkeunen robinkeunen changed the title t Analysis - rename repositories and module Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants