Commit Graph

20 Commits (9998f903512ea7b4f6e99a19b84f47d88e3758e0)

Author SHA1 Message Date
Eric Antones 9998f90351 [MIG] database_cleanup: Migration to version 10.0
Using new base model inheritance.
2024-01-10 16:14:47 -03:00
Holger Brunn 935bcd4eac [ADD] allow creating missing indexes and purging properties (#736)
* [ADD] allow creating missing indexes

* [FIX] tests; installation

* [ADD] allow purging properties

* [ADD] missing file

* [ADD] test purging properties

* [ADD] missing parent_id for menu entry

* [FIX] don't delete too many and wrong properties
2024-01-10 16:14:47 -03:00
Dave Lasley 67d18cce0a [9.0][FIX] database_cleanup: Isolate build (#719)
* [FIX] database_cleanup: Isolate build
* Isolate `database_cleanup` into its own build in Travis file to fix #689

* [FIX] database_cleanup: Remove KeyError assertion
* Remove KeyError assertion in tests due to PR in comment being merged
2024-01-10 16:14:47 -03:00
Moises Lopez - https://www.vauxoo.com/ da992a1e03 [FIX] database_cleanup: Fix test (#612) 2024-01-10 16:14:47 -03:00
Florian da Costa d7e1f5bd28 fixes #587 2024-01-10 16:14:47 -03:00
Jordi Ballester Alomar 3b764a1fa7 [FIX] clean database menus was proposing good menus to purge (#562) 2024-01-10 16:14:47 -03:00
Holger Brunn 9a3d22aa9f [FIX] don't crash if an xmlid refers to a nonexisting field (#559) 2024-01-10 16:14:47 -03:00
Holger Brunn e7decb535d [IMP] call the button handler to also purge reverse dependencies 2024-01-10 16:14:47 -03:00
OCA Transbot 87d92ff2ec OCA Transbot updated translations from Transifex 2024-01-10 16:14:47 -03:00
Holger Brunn 43699a18ff [FIX] purge uninstalled uninstallable modules instead of deleting
[FIX] database_cleanup reloads the registry

which has weird side effects during testing. Take care
database_cleanup's tests don't mess up the following tests
2024-01-10 16:14:47 -03:00
Stefan Rijnhart 0f1237c45a [RFR] Explicit access rights so that tests can run
Fixes #505
2024-01-10 16:14:47 -03:00
Holger Brunn f6003feefa [ADD] migrate database_cleanup
[ADD] test purging modules

[ADD] test purging tables
2024-01-10 16:14:47 -03:00
Holger Brunn dc249595f6 [IMP] allow to select lines to purge in a tree view
[IMP] adaptto upstream changes
2024-01-10 16:14:47 -03:00
Holger Brunn f996fe8228 [ADD] allow to clean up menus 2024-01-10 16:14:47 -03:00
Matjaž Mozetič c5fd4d2eb6 Missing templates and translations added 2024-01-10 16:14:47 -03:00
Holger Brunn 031dbf21f7 [IMP] hide unnecessary buttons in wizard
[IMP] order wizard lines by name

[IMP] deal with modules whose models can't be loaded

[IMP] double quotes for docstring

[FIX] use exists query instead of huge in list

[IMP] hide unnecessary buttons in wizard II

[IMP] readability

[FIX] cope with purging nonexisting models
2024-01-10 16:14:47 -03:00
Anthony Muschang ecf4723a44 [CHG] Migration to 8.0
[CHG] database_cleanup: move description to README.rst
2024-01-10 16:14:47 -03:00
Stefan Rijnhart d409be3307 [FIX] Don't remove uid field from wkf_instance, which is written in
raw SQL query (but never read afterwards). Workaround for
    lp:1277899

[FIX] Preserve dangling workflow table which is in use

[RFR] Group models per table when detecting columns to purge
      to prevent problems with models sharing the same table

[ADD] Allow purging of dangling data entries

[FIX] Data purging now working

[IMP] Docstrings

[FIX] Label
[FIX] Catch attempt to unlink field from nonexisting model

[RFR] Flake8
2024-01-10 16:14:47 -03:00
Guewen Baconnier 9290ad73d8 remove relations when purging models
avoid ''NoneType' object has no attribute 'exists'' error when purging models
fix my change guewen.baconnier@camptocamp.com-20140203103254-v1mzu2uib047xb9h, wrong lines replaced...
2024-01-10 16:14:47 -03:00
Stefan Rijnhart 34c4531a0b [ADD] Database cleanup module 2024-01-10 16:14:47 -03:00