mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
[REF] monitoring_prometheus: server_environment should not be a required dependency
This commit is contained in:
committed by
Iván Todorovich
co-authored by
Iván Todorovich
parent
5d8d3b48b8
commit
5108bfe728
@@ -4,17 +4,12 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "Monitoring: Prometheus Metrics",
|
"name": "Monitoring: Prometheus Metrics",
|
||||||
"version": "17.0.1.0.0",
|
"version": "17.0.1.0.1",
|
||||||
"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"],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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/17.0/addons/http_routing/models/ir_http.py#L538
|
||||||
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/"):
|
||||||
|
|||||||
Reference in New Issue
Block a user