[19.0][MIG] database_size: Migration to 19.0#3664
Conversation
Currently translated at 100.0% (68 of 68 strings) Translation: server-tools-18.0/server-tools-18.0-database_size Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-database_size/it/
Currently translated at 100.0% (68 of 68 strings) Translation: server-tools-18.0/server-tools-18.0-database_size Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-database_size/it/
Fixes
```
File "/home/odoo/.local/lib/python3.12/site-packages/sentry_sdk/client.py", line 595, in _prepare_event
new_event = before_send(event, hint or {})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/odoo/src/user/oca-server-tools/sentry/hooks.py", line 66, in before_send
if event.setdefault("tags", {})["include_context"]:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'include_context'
2025-07-08 14:45:45,907 14296 INFO quatra-18-0-development-21441249 sentry_sdk.errors: before send dropped event
```
Error is only logged when running Sentry in debug mode, otherwise events are dropped silently.
Though TransactionCase rolls back database changes, it does not call `unlink` on `auditlog.rule` records, meaning that `unsubscribe` is never called to unpatch model methods. This causes subsequent tests in other modules to unexpectedly execute patched methods. This commit adds the `AuditLogRuleCommon` test class in an attempt to identify and prevent patched methods from contaminating the test environment.
Currently translated at 13.2% (9 of 68 strings) Translation: server-tools-18.0/server-tools-18.0-database_size Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-database_size/fr/
5db9dda to
250b256
Compare
|
/ocabot migration database_size |
|
Hi! This is my migration of database_size to 19.0. All checks are green and the git history has been preserved. Could someone with the appropriate permissions please run the migration command for this addon and review the PR when you have time? Thanks! |
|
Hi @FREDDYGAMBOABEDOR. Your command failed:
Ocabot commands
More information
|
|
Sorry @FREDDYGAMBOABEDOR you are not allowed to mark the addon to be migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
|
/ocabot migration database_size |
|
Thank you! Unfortunately, someone was there before you: #3632. Can you help review that one? |
Migration of
database_sizefrom 18.0 to 19.0.Changes:
_sql_constraintsto the newmodels.Constraintsyntaxexpand/stringattributes from the<group>tag in the search view (groupby)ir_model_size_report.pytranslation calls to use named placeholders instead of f-strings, per pylint-odootranslation-fstring-interpolation/translation-positional-usedrules