lp:~therp-nl/openupgrade-server/6.0-API_and_loading_improvements
This branch ensures that pre and post scripts are only called once. This means that developers do not have to bother checking whether they are being rerun in the scripts themselves. It is now also ensured that new dependencies are installed automatically. Modules that are known to be obsolete will now be removed automatically.
The API is augmented with a decorator that can be used in migration scripts to log any errors that may occur. A new function for renaming XML IDs is provided, and setting defaults provided by a function is faster.
Some bugs in the base module migration scripts are solved.
- Get this branch:
- bzr branch lp:~therp-nl/openupgrade-server/6.0-API_and_loading_improvements
Branch merges
- OpenUpgrade Committers: Pending requested
-
Diff: 580 lines (+268/-102)5 files modifiedbin/addons/__init__.py (+12/-15)
bin/addons/base/migrations/6.0.1.3/post-migration.py (+88/-37)
bin/addons/base/migrations/6.0.1.3/pre-migration.py (+25/-15)
bin/addons/openupgrade_records/lib/apriori.py (+3/-0)
bin/openupgrade/openupgrade.py (+140/-35)
Branch information
Recent revisions
- 3496. By Stefan Rijnhart (Opener)
-
[ADD] API:
- rename_xmlids
- mark_obsolete_modules
- migrate() decorator
- add_module_dependencies
[IMP] API: calculate default function only once per user
[FIX] base:
- bug in creating unknown bank
- rename salesman group xmlid
- preserve res_partner_function table for use in hr_contract
- remove obsolete modules
- use openupgrade.migrate( ) decorator
[IMP] (loading) use table_exists function from library
[IMP] (loading) keep track of pre and post processed modules
[IMP] (loading) add module dependencies
[ADD] openupgrade_records: additional apriori knowledge - 3495. By Stefan Rijnhart (Opener)
-
[ADD] General OpenUpgrade log
[IMP] Store general OpenUpgrade log in base module's migrations directory - 3494. By Stefan Rijnhart (Opener)
-
[FIX] Prevent double entries in records table
[ADD] analysis file for base module
[FIX] Sort input for analysis files - 3492. By Stefan Rijnhart (Opener)
-
[IMP] Align OpenUpgrade module between server versions
[IMP] Write files is now an option
[IMP] Store last log file on the comparison configuration - 3490. By Stefan Rijnhart (Opener)
-
[RFR] OpenUpgrade: move record table truncate to own module
[FIX] OpenUpgrade: Missing newlines in record report
[FIX] OpenUpgrade: Only log newly added orm instances - 3488. By Stefan Rijnhart (Opener)
-
[ADD] Communicate with old server
[RFR] Can now import comparison logic as lib
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:openupgrade-server/6.1