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

[17.0][MIG] upgrade_analysis #2826

Merged
merged 81 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
6a5feb5
[MOVE] openupgrade_records : move module from OCA/OpenUpgrade (branch…
legalsylvain Nov 6, 2020
ed44832
[REF] rename module openupgrade_records into upgrade_analysis
legalsylvain Nov 6, 2020
f29ff2d
[REF] rename files, apply OCA convention, remove obsolete 6.1 syntax,…
legalsylvain Nov 6, 2020
dd66ff4
[IMP] upgrade_analysis: improve install wizard to have the possibilit…
legalsylvain Nov 6, 2020
1f6e8de
[MOVE] Port patches and framework from openupgrade project
legalsylvain Nov 7, 2020
6ececf6
[REF] rename framework files, adapt to new module names, remove print…
legalsylvain Nov 7, 2020
c92f7b2
[RFR] Improve patchwork
StefanRijnhart Dec 1, 2020
aed6074
[IMP] Create records with timestamp; [RFR] No /migration/ level when …
StefanRijnhart Dec 6, 2020
827d506
[FIX] ImportError;
StefanRijnhart Dec 7, 2020
f80a5bc
[IMP] various improvment from Yajo.
legalsylvain Dec 7, 2020
4f53a65
[IMP] import apriori file of openupgrade_scripts, if available
legalsylvain Dec 7, 2020
285f75a
[RFR] upgrade_path not user writable
StefanRijnhart Dec 8, 2020
3df408a
[ADD] Generate noupdate_changes
StefanRijnhart Dec 11, 2020
fdedffa
[FIX] dataclasses for Python < 3.7
StefanRijnhart Dec 11, 2020
0ab6f67
Update upgrade_analysis/models/ir_module_module.py
legalsylvain Jan 20, 2021
507a888
[REM] remove obsolete roadmap point
legalsylvain Feb 24, 2021
dbe36f4
[IMP] remove pre-commit exception and fix various style in odoo_patch…
legalsylvain Feb 24, 2021
3678090
[UPD] Update upgrade_analysis.pot
oca-travis Feb 26, 2021
0bdffde
[UPD] README.rst
OCA-git-bot Feb 26, 2021
05a722b
[ADD] icon.png
OCA-git-bot Feb 26, 2021
06228ef
[IMP] openupgrade_records: remove from analysis updating records
MiquelRForgeFlow Mar 23, 2021
44d5f6a
[FIX] openupgrade_records: _inherits was not being compared
MiquelRForgeFlow Mar 23, 2021
f69a221
[IMP] openupgrade_records: compare columns of many2many tables
MiquelRForgeFlow Mar 23, 2021
f83a940
[IMP] openupgrade_records: add _order comparison
MiquelRForgeFlow Mar 23, 2021
58204c1
[IMP] upgrade_analysis: make us of odoorpc/openupgrade master
MiquelRForgeFlow Mar 23, 2021
116807c
upgrade_analysis 14.0.2.0.0
OCA-git-bot Mar 25, 2021
2fd9e9b
[OU-MIG] upgrade_analysis: add migration scripts
MiquelRForgeFlow Mar 25, 2021
aab974b
[UPD] README.rst
OCA-git-bot Mar 25, 2021
36bc2e0
[UPD] Update upgrade_analysis.pot
oca-travis Mar 25, 2021
0044dc0
upgrade_analysis 14.0.2.0.1
OCA-git-bot Mar 25, 2021
8f3d6de
[FIX] upgrade_analysis: fix methods related to noupdate data
MiquelRForgeFlow Mar 26, 2021
32f0492
[FIX] upgrade_analysis: truncate upgrade records before generating ne…
MiquelRForgeFlow Mar 28, 2021
3459eb6
[UPD] README.rst
OCA-git-bot Mar 29, 2021
799a138
upgrade_analysis 14.0.2.1.0
OCA-git-bot Mar 29, 2021
0e7460b
[FIX] upgrade_analysis: merged modules affecting noupdate files
MiquelRForgeFlow Apr 21, 2021
2b14541
[FIX] upgrade_analysis: revert to 'files' approach instead of 'paths'
MiquelRForgeFlow Apr 21, 2021
c872111
[UPD] Update upgrade_analysis.pot
oca-travis Apr 30, 2021
4bf5825
Added translation using Weblate (French)
Yvesldff May 14, 2021
2d2a2af
[IMP] update dotfiles [ci skip]
sbidoul May 14, 2021
390441f
Translated using Weblate (French)
Yvesldff May 14, 2021
ceb26b0
[FIX] Other modules upgrade write file full path
Yasaie Oct 12, 2021
2de0314
upgrade_analysis 14.0.2.1.1
OCA-git-bot Oct 13, 2021
1375211
[MIG] upgrade_analysis from 14.0 to 15.0
legalsylvain Oct 20, 2021
8c54d4f
[UPD] Update upgrade_analysis.pot
Nov 10, 2021
428363d
[UPD] README.rst
OCA-git-bot Nov 10, 2021
19938fc
[IMP] upgrade_coverage : generate coverage module file
legalsylvain Nov 11, 2021
19c9fec
[IMP] upgrade_analysis : prefill status with trivial information
legalsylvain Nov 14, 2021
c19ed72
[REF] in coverage module file, split column into 2. a column that sho…
legalsylvain Nov 15, 2021
921de7a
upgrade_analysis 15.0.1.0.2
OCA-git-bot Nov 15, 2021
c104892
[15.0][ADD] link to usage instructions
jcdrubay May 10, 2022
2bb60d0
[UPD] README.rst
OCA-git-bot May 10, 2022
c3077c5
upgrade_analysis 15.0.1.0.3
OCA-git-bot May 10, 2022
695056b
[DOC] upgrade_analysis : update roadmap.rst
legalsylvain Jun 16, 2022
618bd8d
[REF] upgrade_analysis add maintainers
legalsylvain Jun 16, 2022
067064a
[UPD] README.rst
OCA-git-bot Jun 16, 2022
0f790ca
upgrade_analysis 15.0.1.0.4
OCA-git-bot Jun 16, 2022
c69be43
[ADD] upgrade_analysis: generate noupdate_changes for template tag
royle-vietnam Jul 5, 2022
f07177c
[IMP] upgrade_analysis: log sql_constraints in analysis
MiquelRForgeFlow Dec 13, 2021
b152612
[UPD] Update upgrade_analysis.pot
Jul 18, 2022
e00d86d
upgrade_analysis 15.0.2.0.0
OCA-git-bot Jul 18, 2022
d87ced8
Update translation files
oca-transbot Jul 18, 2022
6197f0b
Added translation using Weblate (Spanish (Argentina))
ibuioli Sep 4, 2022
ec03418
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 4, 2022
7b9161a
upgrade_analysis 15.0.2.0.1
OCA-git-bot Oct 5, 2022
2b22a07
[MIG] upgrade_analysis: Migration to 16.0
StefanRijnhart Oct 5, 2022
dcbbedd
[FIX] upgrade_analysis: misleading representation of read/write compu…
StefanRijnhart Oct 11, 2022
85c814a
[UPD] Update upgrade_analysis.pot
Oct 19, 2022
e005c9a
[UPD] README.rst
OCA-git-bot Oct 19, 2022
26818ad
[UPD] Update upgrade_analysis.pot
Nov 18, 2022
b4b97e7
Update translation files
weblate Nov 18, 2022
519e98b
[FIX] upgrade_analysis : avoid KeyError "module"
metaminux May 17, 2023
ad69d33
upgrade_analysis 16.0.1.0.1
OCA-git-bot May 18, 2023
22b5b57
[UPD] Update upgrade_analysis.pot
Jun 7, 2023
9f5df36
Update translation files
weblate Jun 7, 2023
03ce8b5
[UPD] README.rst
OCA-git-bot Sep 3, 2023
b2dfdeb
[IMP] upgrade_analysis: pre-commit auto fixes
StefanRijnhart Feb 2, 2024
916f4d3
[MIG] upgrade_analysis: Migration to 17.0
StefanRijnhart Feb 2, 2024
9bf4d5f
[FIX] upgrade_analysis: Proper UI in forms
pedrobaeza Oct 21, 2023
febb0c3
[FIX] upgrade_analysis: Add to blacklist deprecated modules
pedrobaeza Oct 21, 2023
9289acc
[REF] upgrade_analysis: allow to set upgrade_path manually
StefanRijnhart Feb 2, 2024
9424923
[REF] upgrade_analysis: increase module description column in generat…
StefanRijnhart Feb 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# generated from manifests external_dependencies
astor
dataclasses
mako
odoorpc
openupgradelib
sentry_sdk<=1.9.0
120 changes: 120 additions & 0 deletions upgrade_analysis/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
================
Upgrade Analysis
================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:242860bef7e19733f963e0ac5d76d8cf6fab512d5868fdea809ea2bc848d5718
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/17.0/upgrade_analysis
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-upgrade_analysis
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-tools&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module provides the tool to generate the database analysis files
that indicate how the Odoo data model and module data have changed
between two versions of Odoo. Database analysis files for the core
modules are included in the OpenUpgrade distribution so as a migration
script developer you will not usually need to use this tool yourself. If
you do need to run your analysis of a custom set of modules, please
refer to the documentation here:
https://doc.therp.nl/openupgrade/analysis.html

This module is just a tool, a continuation of the old
openupgrade_records in OpenUpgrade in previous versions. It's not
recommended to have this module in a production database.

**Table of contents**

.. contents::
:local:

Usage
=====

`Usage instructions <https://oca.github.io/OpenUpgrade/analyse.html>`__

Known issues / Roadmap
======================

- Log removed modules in the module that owned them (#468)
- Detect renamed many2many tables (#213)
- Make sure that the ``migration_analysis.txt`` file is always
generated in all cases. (See:
https://github.com/OCA/OpenUpgrade/pull/3209#issuecomment-1157449981)

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20upgrade_analysis%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Therp BV
* Opener B.V.
* GRAP

Contributors
------------

- Stefan Rijnhart <[email protected]>
- Holger Brunn <[email protected]>
- Pedro M. Baeza <[email protected]>
- Ferdinand Gassauer <[email protected]>
- Florent Xicluna <[email protected]>
- Miquel Raïch <[email protected]>
- Sylvain LE GAL <https://twitter.com/legalsylvain>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-StefanRijnhart| image:: https://github.com/StefanRijnhart.png?size=40px
:target: https://github.com/StefanRijnhart
:alt: StefanRijnhart
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-StefanRijnhart| |maintainer-legalsylvain|

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/17.0/upgrade_analysis>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions upgrade_analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from . import odoo_patch
from . import models
from . import wizards
from . import blacklist
from . import compare
from . import upgrade_log
28 changes: 28 additions & 0 deletions upgrade_analysis/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2011-2015 Therp BV <https://therp.nl>
# Copyright 2016 Opener B.V. <https://opener.am>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Upgrade Analysis",
"summary": "Performs a difference analysis between modules"
" installed on two different Odoo instances",
"version": "17.0.1.0.0",
"category": "Migration",
"author": "Therp BV, Opener B.V., GRAP, Odoo Community Association (OCA)",
"maintainers": ["StefanRijnhart", "legalsylvain"],
"website": "https://github.com/OCA/server-tools",
"data": [
"security/ir.model.access.csv",
"views/menu.xml",
"views/view_upgrade_comparison_config.xml",
"views/view_upgrade_analysis.xml",
"views/view_upgrade_record.xml",
"wizards/view_upgrade_generate_record_wizard.xml",
"wizards/view_upgrade_install_wizard.xml",
],
"installable": True,
"depends": ["base"],
"external_dependencies": {
"python": ["mako", "dataclasses", "odoorpc", "openupgradelib"],
},
"license": "AGPL-3",
}
15 changes: 15 additions & 0 deletions upgrade_analysis/blacklist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BLACKLIST_MODULES = [
"payment_alipay",
"payment_ogone",
"payment_payulatam",
"payment_payumoney",
]

# the hw_* modules are not affected by a migration as they don't
# contain any ORM functionality, but they do start up threads that
# delay the process and spit out annoying log messages continuously.

# We also don't want to analyze tests modules
BLACKLIST_MODULES_STARTS_WITH = ["hw_", "test_"]

BLACKLIST_MODULES_ENDS_WITH = ["_test"]
Loading
Loading