From ce1101686d7ac8ee7841bc3c4c73d1c35844091f Mon Sep 17 00:00:00 2001 From: KRAIEM Taha Yassine Date: Fri, 21 May 2021 23:49:20 +0200 Subject: [PATCH] Changes: - FOS: changed dashboard method constraint --- api/chalicelib/core/dashboard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/chalicelib/core/dashboard.py b/api/chalicelib/core/dashboard.py index f306a51b4..6cfbad461 100644 --- a/api/chalicelib/core/dashboard.py +++ b/api/chalicelib/core/dashboard.py @@ -1703,6 +1703,7 @@ def get_calls_errors(project_id, startTimestamp=TimeUTC.now(delta_days=-1), endT platform=None, **args): pg_sub_query = __get_constraints(project_id=project_id, data=args) pg_sub_query.append("resources.type = 'fetch'") + pg_sub_query.append("resources.method IS NOT NULL") pg_sub_query.append("resources.status/100 != 2") with pg_client.PostgresClient() as cur: @@ -1728,6 +1729,7 @@ def get_calls_errors_4xx(project_id, startTimestamp=TimeUTC.now(delta_days=-1), platform=None, **args): pg_sub_query = __get_constraints(project_id=project_id, data=args) pg_sub_query.append("resources.type = 'fetch'") + pg_sub_query.append("resources.method IS NOT NULL") pg_sub_query.append("resources.status/100 = 4") with pg_client.PostgresClient() as cur: @@ -1751,6 +1753,7 @@ def get_calls_errors_5xx(project_id, startTimestamp=TimeUTC.now(delta_days=-1), platform=None, **args): pg_sub_query = __get_constraints(project_id=project_id, data=args) pg_sub_query.append("resources.type = 'fetch'") + pg_sub_query.append("resources.method IS NOT NULL") pg_sub_query.append("resources.status/100 = 5") with pg_client.PostgresClient() as cur: