Commit Graph

1003 Commits (0c37b49f696fb4332247ffb7bb33b01481d03e0c)

Author SHA1 Message Date
Sylvain LE GAL f29ff2daa7 [REF] rename files, apply OCA convention, remove obsolete 6.1 syntax, make the module installable, add readme folders 2024-05-23 10:03:49 +02:00
Sylvain LE GAL ed44832568 [REF] rename module openupgrade_records into upgrade_analysis 2024-05-23 10:03:49 +02:00
Sylvain LE GAL 6a5feb5d7e [MOVE] openupgrade_records : move module from OCA/OpenUpgrade (branch 13.0) to OCA/server-tools
Based on commit 746b7acbd90d62f9ffe6ee17472a1a3533e36597 (Fri Nov 6 17:18:47 2020 +0100)

Co-authored-by: Stefan Rijnhart <stefan@opener.am>
2024-05-23 10:03:49 +02:00
OCA-git-bot 33d7a8ea23 [BOT] post-merge updates 2024-05-14 14:06:51 +00:00
oca-ci b02a88fd2e [UPD] Update sentry.pot 2024-05-14 14:04:22 +00:00
OCA-git-bot 9bdb059894 Merge PR #2818 into 17.0
Signed-off-by thomaspaulb
2024-05-14 14:01:58 +00:00
OCA-git-bot b36099a952 [BOT] post-merge updates 2024-05-14 09:42:00 +00:00
oca-ci c9ac8231a2 [UPD] Update iap_alternative_provider.pot 2024-05-14 09:39:25 +00:00
OCA-git-bot d3e35ad0bc Merge PR #2914 into 17.0
Signed-off-by gurneyalex
2024-05-14 09:37:09 +00:00
Luka Zorko 06719ba4d5 [MIG] iap_alternative_provider: Migration to 17.0 2024-05-14 08:35:49 +02:00
Atte Isopuro 4ed27506e5 [IMP] Add tests to increase coverage 2024-05-13 12:26:04 +03:00
Atte Isopuro b4ac462f9e [MIG] sentry: Migration to 17.0 2024-05-13 12:26:04 +03:00
Atte Isopuro 22c7105ffe [IMP] sentry: pre-commit manual fixes 2024-05-13 12:26:04 +03:00
Atte Isopuro c27151c25f [IMP] sentry: pre-commit auto fixes 2024-05-13 12:26:04 +03:00
Atte Isopuro 22657fd65d [IMP] sentry: increase test coverage 2024-05-13 12:22:13 +03:00
Atte Isopuro 20270d0248 [FIX] sentry: respect sentry_logging_level
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.

NOTE: this commit was cherry-picked from d24f3d77a3,
and includes some changes to test code that was not in the original due
to conflicts.
2024-05-13 12:22:13 +03:00
mymage e45b39511a Added translation using Weblate (Italian) 2024-05-13 12:22:13 +03:00
OCA-git-bot 9f2dba4299 [UPD] README.rst 2024-05-13 12:22:13 +03:00
OCA-git-bot 666861335d sentry 16.0.3.0.1 2024-05-13 12:22:13 +03:00
OCA-git-bot b6e456b4a5 [UPD] README.rst 2024-05-13 12:22:13 +03:00
Jon f27ae3d418 [FIX] Prevent capturing ignored exceptions 2024-05-13 12:22:13 +03:00
OCA-git-bot 584be0d429 sentry 16.0.3.0.0 2024-05-13 12:22:13 +03:00
Deivis Laya cef05e13f0 [FIX] sentry: downgrade sentry-sdk to compatible version
Odoo requires urllib3 == 1.26.5
e0feda4629/requirements.txt (L56)

sentry-sdk > 1.9.0 required urllib3 >= 1.26.11
4f1f782fbe/setup.py (L43)

Currently, urllib3 >= 1.26.11 is causing the following error in
response.py:

``` Traceback (most recent call last):
"/home/odoo/.local/lib/python3.8/site-packages/urllib3/response.py",
line 705, in _error_catcher
    yield
  File
"/home/odoo/.local/lib/python3.8/site-packages/urllib3/response.py",
line 830, in _raw_read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
urllib3.exceptions.IncompleteRead: IncompleteRead(1501 bytes read, -827
more expected)
```

On the other hand, sentry 1.9.0 supports urllib3 >= 1.10.0, satisfying
odoo requirements.

This partially reverts
d7ae024951.
That was initially introduced to support newer versions of `sentry_sdk`, but won't be required anymore
due to this downgrade.
2024-05-13 12:22:13 +03:00
OCA-git-bot 061a128eb0 sentry 16.0.2.0.0 2024-05-13 12:22:13 +03:00
Deivis Laya 7374723986 [FIX] sentry: change with_locals to include_local_variables variable
Currently, version 1.17.0 of sentry_sdk is causing the following error:

SentryOption("with_locals", DEFAULT_OPTIONS["with_locals"], None),
KeyError: 'with_locals'.

Where the with_locals key is not found in the dictionary, generating an
error, stopping the installation of the sentry module.

In version 1.17.0 rename 'with_locals'  to 'include_local_variables'
79e33169aa

This commit adjust the  get_sentry_options() method in
https://github.com/Vauxoo/server-tools/blob/16.0/sentry/const.py file, set the new variable.
2024-05-13 12:22:13 +03:00
OCA-git-bot 8c469a22b6 [UPD] README.rst 2024-05-13 12:22:13 +03:00
oca-ci 62773d2243 [UPD] Update sentry.pot 2024-05-13 12:22:13 +03:00
prabakaran d2d302cb08 [MIG] sentry: Migration to 16.0 2024-05-13 12:22:13 +03:00
Weblate fc4073819e Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-15.0/server-tools-15.0-sentry
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-sentry/
2024-05-13 12:22:13 +03:00
OCA-git-bot 406e56e7ca [UPD] README.rst 2024-05-13 12:22:13 +03:00
oca-ci 7f0036da4b [UPD] Update sentry.pot 2024-05-13 12:22:13 +03:00
Atte Isopuro 23d7203b21 [FIX] sentry: test failure due to incomplete transport init
The test code uses a "mock" Transport object to ensure that events are
stored locally in memory, instead of triggering network requests.

The Sentry client is cleaned up once done, and this triggers a call to
capture_envelope, a different way of sending events to Sentry. Since
our mock class did not fully complete initialization, and also did
not provide an overriding method, the original was called, which
depends on proper initialization to work.

We introduce an override for capture_envelope: as it is meant to be
a "sibling" to capture_event, it makes sense for us to also make sure
events registrered in this way are intercepted, even if we don't
currently expect any of our tests to explicitly cause it to be used.
2024-05-13 12:22:13 +03:00
Atte Isopuro f40702c050 [MIG] sentry: Migration to 15.0 2024-05-13 12:22:13 +03:00
OCA-git-bot b8a5718688 sentry 14.0.1.1.1 2024-05-13 12:22:13 +03:00
OCA-git-bot 402acf8b89 [UPD] README.rst 2024-05-13 12:22:13 +03:00
Florian Mounier 8c9bb8f5a8 [FIX] sentry: Fix bad ported version 2024-05-13 12:22:13 +03:00
Florian Mounier 7d82a46c52 [FIX] sentry: warn about sentry_transport only if it is specified in config 2024-05-13 12:22:13 +03:00
Florian Mounier 9293edd67a [FIX] sentry: Patch odoo.service.server wsgi app
Because post_load is called after odoo.service.server start
It has already registered the unpatched   odoo.service.wsgi_server.application
So patch it here too.
This enables wsgi performance reporting with sentry_traces_sample_rate
2024-05-13 12:22:13 +03:00
Florian Mounier 47f44c9d1a [FIX] sentry: Coerce numerical config values 2024-05-13 12:22:13 +03:00
Fernanda Hernandez f176b8bd9d [IMP] sentry: migrate sentry-raven to new api sentry-sdk 2024-05-13 12:22:13 +03:00
Dept. Técnico b93b9b8e22 Added translation using Weblate (Catalan) 2024-05-13 12:22:13 +03:00
OCA-git-bot 8b6facbdb9 sentry 14.0.1.0.2 2024-05-13 12:22:13 +03:00
Travis Waelbroeck 54527d3a40 [FIX] sentry: enable use of "sentry_odoo_dir" config parameter
Allow using `sentry_release` or `sentry_odoo_dir` in the Odoo
configuration file.

Previously, the `sentry_odoo_dir` was never actually respected. It would
always be overridden by `sentry_release`. Even if `sentry_release` is
not set, it will use an empty value instead of using `sentry_odoo_dir`
to find the Git commit hash.

After this commit, the `sentry_release` parameter still takes
precedence. However, if `sentry_release` is not set and
`sentry_odoo_dir` is set, then `sentry_odoo_dir` will be used to find
the appropriate Git commit hash, which will be used as the `release`
value.

Both cases are covered by the added unit tests.
2024-05-13 12:22:13 +03:00
OCA-git-bot bc389b87f9 sentry 14.0.1.0.1 2024-05-13 12:22:13 +03:00
Luis González a2dbe57ebd [FIX] sentry: Warning when using classes from collections.abc
The following warning is fixed:

    DeprecationWarning: Using or importing the ABCs from 'collections' instead of
    from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop
    working
2024-05-13 12:22:13 +03:00
oca-travis e65898380d [UPD] Update sentry.pot 2024-05-13 12:22:13 +03:00
OCA-git-bot 18f2ecc88c [UPD] README.rst 2024-05-13 12:22:13 +03:00
OCA Transbot a9be1c3e01 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-sentry
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-sentry/
2024-05-13 12:22:13 +03:00
Travis Waelbroeck f82ac17a2f [MIG] sentry: Migration to 14.0 2024-05-13 12:22:13 +03:00
OCA-git-bot 3bb29910da sentry 13.0.1.1.0 2024-05-13 12:22:13 +03:00