[REF] monitoring_prometheus: server_environment should not be a required dependency

This commit is contained in:
Maksym Yankin
2026-03-31 09:15:28 +03:00
committed by Iván Todorovich
parent 08ef2f8025
commit 2df49eeba0
3 changed files with 5 additions and 7 deletions
+1
View File
@@ -2,6 +2,7 @@ exclude: |
(?x) (?x)
# NOT INSTALLABLE ADDONS # NOT INSTALLABLE ADDONS
^base_fileurl_field/| ^base_fileurl_field/|
^cloud_platform/|
^monitoring_log_requests/| ^monitoring_log_requests/|
^monitoring_prometheus/| ^monitoring_prometheus/|
^monitoring_statsd/| ^monitoring_statsd/|
+2 -7
View File
@@ -7,14 +7,9 @@
"version": "18.0.1.0.0", "version": "18.0.1.0.0",
"author": "Camptocamp,Odoo Community Association (OCA)", "author": "Camptocamp,Odoo Community Association (OCA)",
"license": "AGPL-3", "license": "AGPL-3",
"category": "category", "category": "Extra Tools",
"depends": [ "depends": ["base", "web"],
"base",
"web",
"server_environment",
],
"website": "https://github.com/camptocamp/odoo-cloud-platform", "website": "https://github.com/camptocamp/odoo-cloud-platform",
"data": [],
"external_dependencies": { "external_dependencies": {
"python": ["prometheus_client"], "python": ["prometheus_client"],
}, },
+2
View File
@@ -17,6 +17,8 @@ class IrHttp(models.AbstractModel):
@classmethod @classmethod
def _dispatch(cls, endpoint): def _dispatch(cls, endpoint):
# httprequest environment is updated with WSGI environment variables in core
# REF: https://github.com/odoo/odoo/blob/19.0/odoo/http.py#L2120
path_info = request.httprequest.environ.get("PATH_INFO") path_info = request.httprequest.environ.get("PATH_INFO")
if path_info.startswith("/longpolling/"): if path_info.startswith("/longpolling/"):