Skip to content

Auto install auditlog in new databases - #4

Closed
mtelahun wants to merge 345 commits into
trevi-software:14.0from
mtelahun:14.0-mod-auto_install
Closed

Auto install auditlog in new databases#4
mtelahun wants to merge 345 commits into
trevi-software:14.0from
mtelahun:14.0-mod-auto_install

Conversation

@mtelahun

@mtelahun mtelahun commented Jul 4, 2021

Copy link
Copy Markdown

No description provided.

@mtelahun
mtelahun force-pushed the 14.0-mod-auto_install branch from 04b8646 to 27e928d Compare October 29, 2021 09:13
@mtelahun
mtelahun force-pushed the 14.0-mod-auto_install branch from 27e928d to 97a3dbc Compare May 18, 2022 18:36
@codecov-commenter

codecov-commenter commented May 18, 2022

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@mtelahun
mtelahun force-pushed the 14.0-mod-auto_install branch 2 times, most recently from f6268cf to b84b47d Compare September 6, 2022 04:33
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale label Apr 30, 2023
@mtelahun
mtelahun force-pushed the 14.0-mod-auto_install branch from b84b47d to 4beb8aa Compare April 30, 2023 15:19
@github-actions github-actions Bot removed the stale label May 7, 2023
@mtelahun
mtelahun force-pushed the 14.0-mod-auto_install branch from 4beb8aa to 07430af Compare October 3, 2023 18:04
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale label Nov 24, 2024
gfcapalbo and others added 17 commits November 29, 2024 10:34
Currently translated at 84.2% (118 of 140 strings)

Translation: server-tools-14.0/server-tools-14.0-base_custom_info
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_custom_info/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-module_auto_update
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-module_auto_update/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-base_changeset
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_changeset/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-autovacuum_message_attachment
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-autovacuum_message_attachment/
Currently translated at 100.0% (16 of 16 strings)

Translation: server-tools-14.0/server-tools-14.0-module_auto_update
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-module_auto_update/it/
Currently translated at 94.1% (80 of 85 strings)

Translation: server-tools-14.0/server-tools-14.0-auto_backup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-auto_backup/it/
Rodrigo Macedo and others added 28 commits November 29, 2024 10:34
Currently translated at 100.0% (25 of 25 strings)

Translation: server-tools-14.0/server-tools-14.0-sql_request_abstract
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-sql_request_abstract/pt_BR/
Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-database_cleanup/
Currently translated at 100.0% (37 of 37 strings)

Translation: server-tools-14.0/server-tools-14.0-module_analysis
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-module_analysis/it/
Currently translated at 27.6% (18 of 65 strings)

Translation: server-tools-14.0/server-tools-14.0-base_import_odoo
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-base_import_odoo/it/
The condition on stored field does not allow to track changes
on property fields as they are not stored on the model itself,
although Odoo allows to track such fields.

Use a blacklist of mixins to make sure all the fields from these
models are blacklisted and use a function to allow custom redefinition.
In smart searches we're joining two _search results which normally will
be a Query object. We need to resolve those queries in order to join the
results.

TT48444
Currently translated at 82.5% (165 of 200 strings)

Translation: server-tools-14.0/server-tools-14.0-excel_import_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export/it/
Before this fix, the Sentry module sent events for WARNING-
level logs, even if sentry_logging_level was registered as
"error" or higher.

The fix itself is minor: setup of the integration mistakenly
set the hardcoded WARNING level to the event handler and the
sentry_logging_level to the breadcrumb handler, when they
should have been the other way around.

The largest part of the diff is a reworking of the tests in
order to properly replicate the issue:

* The test previously emitted a fake log event directly using
  the integration's handler's emit-method, which skipped the
  part of the logic that actually filters based on logging level.
  This has been changed to use a bespoke NoopHandler and dedicated
  Logger, so that the tests can emit "actual logs" and test Sentry
  as accurately as possible.
* The tests were not configured to use a non-default logging level,
  thus making it so that none of them caught the fact we were basically
  hard-coding the setting to WARNING-level.
  The tests now set the logging level to ERROR in order to make sure
  the configuration parameter works when it is non-default.
* Changes to configuration (especially ignored loggers) were leaking
  from one test into others. The tests were directly mutating the
  `odoo.tools.config.options` mapping, without resetting it afterward,
  leaving the changes in place for subsequent tests.
  Introduced a helper method `patch_config` that can be used to patch
  the config object so that the patch is undone at the end of the test.
test ensure info log is sent to sentry but this is not
the case as long backport set level to be sent from error

Also split revert some change regarding class setup
to make startup test working
Currently translated at 82.5% (165 of 200 strings)

Translation: server-tools-14.0/server-tools-14.0-excel_import_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-excel_import_export/it/
An invalid field must be skipped in any case if not in strict mode.
Error message has been downgraded to warning since is not really broken
till you use string mode.

Log tests reworked.
@mtelahun mtelahun closed this Nov 30, 2024
@mtelahun

Copy link
Copy Markdown
Author

borked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.