From d95738bb0d5df41924315e51aec68f3233d6abbc Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Wed, 20 Nov 2024 12:34:25 +0100 Subject: [PATCH] fix(chalice): support top graphql autocomplete (#2767) refactor(chalice): enforce UTC TZ refactor(crons): enforce UTC TZ refactor(alerts): enforce UTC TZ (cherry picked from commit 884f3499ef3d8fafafb9ac3cca07ffa6d9b58175) --- api/entrypoint.sh | 1 + api/entrypoint_alerts.sh | 1 + api/run-alerts-dev.sh | 1 + api/run-dev.sh | 1 + ee/api/chalicelib/utils/exp_ch_helper.py | 1 + ee/api/entrypoint.sh | 1 + ee/api/entrypoint_alerts.sh | 1 + ee/api/entrypoint_crons.sh | 1 + 8 files changed, 8 insertions(+) diff --git a/api/entrypoint.sh b/api/entrypoint.sh index 421eb46a1..b61755e4b 100755 --- a/api/entrypoint.sh +++ b/api/entrypoint.sh @@ -1,3 +1,4 @@ #!/bin/sh +export TZ=UTC uvicorn app:app --host 0.0.0.0 --port $LISTEN_PORT --proxy-headers --log-level ${S_LOGLEVEL:-warning} diff --git a/api/entrypoint_alerts.sh b/api/entrypoint_alerts.sh index f346e2303..9eabbe4b0 100755 --- a/api/entrypoint_alerts.sh +++ b/api/entrypoint_alerts.sh @@ -1,3 +1,4 @@ #!/bin/sh +export TZ=UTC export ASSIST_KEY=ignore uvicorn app:app --host 0.0.0.0 --port 8888 --log-level ${S_LOGLEVEL:-warning} diff --git a/api/run-alerts-dev.sh b/api/run-alerts-dev.sh index e0d1d00e8..8853f512c 100755 --- a/api/run-alerts-dev.sh +++ b/api/run-alerts-dev.sh @@ -1,3 +1,4 @@ #!/bin/zsh +export TZ=UTC uvicorn app_alerts:app --reload --port 8888 --log-level ${S_LOGLEVEL:-warning} \ No newline at end of file diff --git a/api/run-dev.sh b/api/run-dev.sh index 4f61ea2eb..af24af70f 100755 --- a/api/run-dev.sh +++ b/api/run-dev.sh @@ -1,3 +1,4 @@ #!/bin/zsh +export TZ=UTC uvicorn app:app --reload --log-level ${S_LOGLEVEL:-warning} \ No newline at end of file diff --git a/ee/api/chalicelib/utils/exp_ch_helper.py b/ee/api/chalicelib/utils/exp_ch_helper.py index e5eccd012..282351908 100644 --- a/ee/api/chalicelib/utils/exp_ch_helper.py +++ b/ee/api/chalicelib/utils/exp_ch_helper.py @@ -58,6 +58,7 @@ def get_event_type(event_type: Union[schemas.EventType, schemas.PerformanceEvent schemas.EventType.REQUEST: "REQUEST", schemas.EventType.REQUEST_DETAILS: "REQUEST", schemas.PerformanceEventType.FETCH_FAILED: "REQUEST", + schemas.GraphqlFilterType.GRAPHQL_NAME: "GRAPHQL", schemas.EventType.STATE_ACTION: "STATEACTION", schemas.EventType.ERROR: "ERROR", schemas.PerformanceEventType.LOCATION_AVG_CPU_LOAD: 'PERFORMANCE', diff --git a/ee/api/entrypoint.sh b/ee/api/entrypoint.sh index f1926341b..79998022e 100755 --- a/ee/api/entrypoint.sh +++ b/ee/api/entrypoint.sh @@ -1,4 +1,5 @@ #!/bin/sh +export TZ=UTC sh env_vars.sh source /tmp/.env.override diff --git a/ee/api/entrypoint_alerts.sh b/ee/api/entrypoint_alerts.sh index f73087984..895b3a160 100755 --- a/ee/api/entrypoint_alerts.sh +++ b/ee/api/entrypoint_alerts.sh @@ -1,4 +1,5 @@ #!/bin/sh +export TZ=UTC export ASSIST_KEY=ignore sh env_vars.sh source /tmp/.env.override diff --git a/ee/api/entrypoint_crons.sh b/ee/api/entrypoint_crons.sh index 1673b9606..7b834dc70 100755 --- a/ee/api/entrypoint_crons.sh +++ b/ee/api/entrypoint_crons.sh @@ -1,4 +1,5 @@ #!/bin/sh +export TZ=UTC export ASSIST_KEY=ignore sh env_vars.sh source /tmp/.env.override