Commit Graph

555 Commits (0f7f6f5c143622b7419745285a4f27dacee77a52)

Author SHA1 Message Date
Atte Isopuro 13868c7502 [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.
2022-12-19 16:05:31 +05:30
Atte Isopuro 1e89e34392 [MIG] sentry: Migration to 15.0 2022-12-19 16:05:31 +05:30
OCA-git-bot 45f6fe7b44 sentry 14.0.1.1.1 2022-12-19 16:05:31 +05:30
OCA-git-bot e511565d74 [UPD] README.rst 2022-12-19 16:05:31 +05:30
Florian Mounier 770cf120e0 [FIX] sentry: Fix bad ported version 2022-12-19 16:05:31 +05:30
Florian Mounier 5d3065e4af [FIX] sentry: warn about sentry_transport only if it is specified in config 2022-12-19 16:05:31 +05:30
Florian Mounier d438a30b7d [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
2022-12-19 16:05:31 +05:30
Florian Mounier e546324ee2 [FIX] sentry: Coerce numerical config values 2022-12-19 16:05:31 +05:30
Fernanda Hernandez 78f7e6057f [IMP] sentry: migrate sentry-raven to new api sentry-sdk 2022-12-19 16:05:31 +05:30
Dept. Técnico 760b6a3709 Added translation using Weblate (Catalan) 2022-12-19 16:05:31 +05:30
OCA-git-bot c950f6cb6f sentry 14.0.1.0.2 2022-12-19 16:05:31 +05:30
Travis Waelbroeck 93b758bf11 [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.
2022-12-19 16:05:31 +05:30
OCA-git-bot d4cab37f13 sentry 14.0.1.0.1 2022-12-19 16:05:31 +05:30
Luis González 8e5c37b2aa [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
2022-12-19 16:05:31 +05:30
oca-travis ab25f50c7b [UPD] Update sentry.pot 2022-12-19 16:05:31 +05:30
OCA-git-bot c213184449 [UPD] README.rst 2022-12-19 16:05:31 +05:30
OCA Transbot e4640dc040 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/
2022-12-19 16:05:31 +05:30
Travis Waelbroeck 51ec40e854 [MIG] sentry: Migration to 14.0 2022-12-19 16:05:31 +05:30
OCA-git-bot fd159a96b7 sentry 13.0.1.1.0 2022-12-19 16:05:31 +05:30
Moisés López 7bbe60b37c [REF] sentry: Fix sentry title level
fix https://github.com/OCA/maintainer-tools/issues/459
https://github.com/OCA/server-tools/pull/1776#discussion_r436904679
Credits sbidoul

[UPD] README.rst
2022-12-19 16:05:31 +05:30
Moises Lopez - https://www.vauxoo.com/ 5dc1677f1f [REF] sentry: README.rst using gen_addon_readme.py locally
because https://github.com/OCA/maintainer-tools/issues/459

[UPD] Update sentry.pot
2022-12-19 16:05:31 +05:30
Ivan 71fccc65a0 [MIG] sentry: Migration to 13.0 2022-12-19 16:05:31 +05:30
Ivan 532bdbdbfe [IMP] sentry: black, isort 2022-12-19 16:05:31 +05:30
黎伟杰 165715b747 Added translation using Weblate (Chinese (Simplified)) 2022-12-19 16:05:31 +05:30
jeffery chen fan 6824e60500 migrate to 12.0
[UPD] Update sentry.pot
2022-12-19 16:05:31 +05:30
Simone Orsi 0a307b16bd Global pylint cleanup 2022-12-19 16:05:31 +05:30
Atte Isopuro bcdfca304b Enable setting a release option directly
sentry: It is not always possible to read commit information from
a production environment. In those cases it is useful to be able
to set a release version manually.

[UPD] Update sentry.pot
2022-12-19 16:05:31 +05:30
Nicolas JEUDY 44d39be740 [FIX] Better manage KEYS - FIELDS conversion 2022-12-19 16:05:31 +05:30
Naglis Jonaitis dc7ce73744 [MIG] sentry to V11
- [FIX] sentry: fixes missing `raven` library preventing loading of modules
- [FIX] 2to3 script on py file
- [FIX] add requirements.txt
2022-12-19 16:05:31 +05:30
Naglis Jonaitis 953f751038 [FIX] sentry: fixes missing `raven` library preventing loading of modules
Related: #761 #879 #881
2022-12-19 16:05:31 +05:30
Naglis Jonaitis 3510909ba2 [ADD] sentry module (#761)
* [ADD] sentry module

* [FIX] updated sentry module according to PR comments
2022-12-19 16:05:31 +05:30
FernandoRomera 5bd57f88ea [16.0][MIG] iap_alternative_provider: Migration to 16.0 2022-12-19 09:30:48 +01:00
FernandoRomera 116bc4ae8c [IMP] iap_alternative_provider: pre-commit stuff 2022-12-19 09:17:41 +01:00
Weblate 31d45f96b9 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-15.0/server-tools-15.0-iap_alternative_provider
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-iap_alternative_provider/
2022-12-19 09:17:16 +01:00
OCA-git-bot d37d1f50eb [UPD] README.rst 2022-12-19 09:17:16 +01:00
oca-ci 69ab80db82 [UPD] Update iap_alternative_provider.pot 2022-12-19 09:17:16 +01:00
Pierre Verkest a4d29086ca [CHG] remove server_environment dependency
Moving this behaviour in a new module in server-env repo
2022-12-19 09:17:16 +01:00
Pierre Verkest 0542d310b2 [IMP] add unit-tests 2022-12-19 09:17:16 +01:00
Pierre Verkest 80abe16fd8 [MIG] iap_alternative_provider: Migration to 15.0 2022-12-19 09:17:16 +01:00
Dept. Técnico 1893b58fe5 Added translation using Weblate (Catalan) 2022-12-19 09:17:16 +01:00
OCA-git-bot f76875398d [UPD] README.rst 2022-12-19 09:17:16 +01:00
oca-travis cba40759f1 [UPD] Update iap_alternative_provider.pot 2022-12-19 09:17:16 +01:00
Sébastien BEAU d593cd887f [FIX] fix multicompany field 2022-12-19 09:17:16 +01:00
Pierrick Brun ee44f35b3b [MIG] iap_alternative_provider: Migration to 14.0 2022-12-19 09:17:16 +01:00
Pierrick Brun 00dacba851 [IMP] iap_alternative_provider: black, isort, prettier 2022-12-19 09:17:16 +01:00
Hendrix Costa 50aaaaff3e [IMP] iap_alternative_provider: black, isort, prettier 2022-12-19 09:17:16 +01:00
OCA-git-bot aa9d3088d3 [ADD] icon.png 2022-12-19 09:17:16 +01:00
OCA-git-bot 87b5d6b869 [UPD] README.rst 2022-12-19 09:17:16 +01:00
oca-travis 616f8ec061 [UPD] Update iap_alternative_provider.pot 2022-12-19 09:17:16 +01:00
Sébastien BEAU 7bf5a21175 [12.0][ADD] add base_iap_alternative 2022-12-19 09:17:16 +01:00