This code comes from the module_checksum_upgrade proposal
at https://github.com/OCA/server-tools/pull/1176.
* [ADD] module_checksum_upgrade
It provides the core mechanism of module_auto_update without
the cron nor any change to the standard upgrade mechanism.
Instead it provides an API on which module_auto_update can build,
as well as a method which can be called from a script to run
the upgrade of modules for which the checksum has changed.
* [IMP] refactor module_auto_update
Make it depend on module_checksum_upgrade which provides
the core mechanisms of managing the checksums. module_auto_update
makes it automatic.
* [IMP] module_checksum_upgrade: better exclusion mechanism
Ignore files based on exclude patterns.
Ignore uninstalled languages.
Better default for patterns to ignore (*.pyc,*.pyo,*.pot,static/*)
For better control on the hashing mechanism implement our own:
it's quite easy, and the checksumdir module used previously had
no test.
* [MIG] module_auto_update: adapt to new checksum mechanism
* [IMP] module_checksum_upgrade: raise in case of
incomplete upgrade
* [IMP] module_checksum_upgrade: improve default exclusion
pattern
* [IMP] module_checksum_upgrade: control translations
overwrite
* [IMP] module_checksum_upgrade: one more test
* [IMP] module_checksum_upgrade: credits [ci skip]
- Files are clearly suffixed with `_deprecated` so we know those features have no support nor migrations.
- Views are removed, since updating from UI was too buggy to support it anymore.
* [9.0][ADD] base_tier_validation
* [9.0][IMP] base_tier_validation: tries automatically request validation and validate if possible.
* [9.0][IMP] base_tier_validation: filter out reviews not pending
* make possible to filter by validated records
Newer versions of LXML raise different exceptions.
It doesn't matter, as long as there's an exception, so we move to less explicit tests.
Newer versions also parse more wrong XML as good HTML, so a test that was expecting a failure and now doesn't is removed.
Newer versions of LXML raise different exceptions.
It doesn't matter, as long as there's an exception, so we move to less explicit tests.
Besides, I mute the logger to avoid expected failure error logging.
Newer versions also parse more wrong XML as good HTML, so a test that was expecting a failure and now doesn't is removed.
* Default the `login_success` parameter to False instead of True in order to mitigate lack of parameter existence due to unknown module. Fixes OCA#1081