Commit Graph

215 Commits (13868c7502afe009d7409e2a206d5a923fd7ca5d)

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
oca-git-bot 7fdeff00ae [IMP] update dotfiles [ci skip] 2022-12-12 00:10:05 +01:00
OCA-git-bot 0957aa46e1 [ADD] setup.py 2022-12-07 07:44:02 +00:00
OCA-git-bot d88c238054 [UPD] README.rst 2022-12-07 07:44:01 +00:00
OCA-git-bot 43da45dc93 [UPD] addons table in README.md 2022-12-07 07:44:00 +00:00
oca-ci 10df566046 [UPD] Update base_view_inheritance_extension.pot 2022-12-07 07:41:29 +00:00
OCA-git-bot ee2b883a5f Merge PR #2494 into 16.0
Signed-off-by pedrobaeza
2022-12-07 07:39:38 +00:00
Raf Ven 152af1a5b5 [MIG] base_view_inheritance_extension: Fix demo view 2022-12-06 23:09:47 +01:00
Enric Tobella 040320c881 [MIG] base_view_inheritance_extension: Migration to 16.0 2022-12-06 21:06:45 +01:00
Enric Tobella 29e3e5fb4e [IMP] base_view_inheritance_extension: black, isort, prettier 2022-12-06 20:26:01 +01:00
OCA-git-bot 836f68352b base_view_inheritance_extension 15.0.1.0.2 2022-12-06 20:24:12 +01:00
Sébastien Alix a227c1e942 [FIX] b_v_inheritance_extension: fix parsing of 'update' operation
This fixes an error we could get if the attribute of the inherited tag
has some extra carriage returns.

Exception raised: SyntaxError: unexpected EOF while parsing
2022-12-06 20:24:12 +01:00
Ignacio Buioli 45e79144af Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (3 of 3 strings)

Translation: server-tools-15.0/server-tools-15.0-base_view_inheritance_extension
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-base_view_inheritance_extension/es_AR/
2022-12-06 20:24:12 +01:00
Ignacio Buioli 3a0bb0cbfa Added translation using Weblate (Spanish (Argentina)) 2022-12-06 20:24:12 +01:00
OCA-git-bot 48747c8ccf base_view_inheritance_extension 15.0.1.0.1 2022-12-06 20:24:12 +01:00
OCA-git-bot 3f696ed424 [UPD] README.rst 2022-12-06 20:24:12 +01:00
Cesar Andres Sanchez 617ddffd77 [IMP] Update development_status Mature 2022-12-06 20:24:12 +01:00
OCA-git-bot d65f46851d [UPD] README.rst 2022-12-06 20:24:12 +01:00
oca-ci 9abad79771 [UPD] Update base_view_inheritance_extension.pot 2022-12-06 20:24:12 +01:00
Ivàn Todorovich 1b70255898 [MIG] base_view_inheritance_extension: Migration to 15.0
* Removed `list_add` and `list_remove`, they've been deprecated and
implemented in Odoo core since several versions ago.

* Removed `move`, as it has also already been implemented in core several
versions ago.

* Replaced `python_dict` by `update`, that performs an operation similar
to :meth:`dict.update`, but on the ast.Dict.
2022-12-06 20:24:12 +01:00