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 884f3499ef)
This commit is contained in:
Kraiem Taha Yassine 2024-11-20 12:34:25 +01:00 committed by Taha Yassine Kraiem
parent 73ade8da81
commit d95738bb0d
8 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
export TZ=UTC
uvicorn app:app --host 0.0.0.0 --port $LISTEN_PORT --proxy-headers --log-level ${S_LOGLEVEL:-warning} uvicorn app:app --host 0.0.0.0 --port $LISTEN_PORT --proxy-headers --log-level ${S_LOGLEVEL:-warning}

View file

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
export TZ=UTC
export ASSIST_KEY=ignore export ASSIST_KEY=ignore
uvicorn app:app --host 0.0.0.0 --port 8888 --log-level ${S_LOGLEVEL:-warning} uvicorn app:app --host 0.0.0.0 --port 8888 --log-level ${S_LOGLEVEL:-warning}

View file

@ -1,3 +1,4 @@
#!/bin/zsh #!/bin/zsh
export TZ=UTC
uvicorn app_alerts:app --reload --port 8888 --log-level ${S_LOGLEVEL:-warning} uvicorn app_alerts:app --reload --port 8888 --log-level ${S_LOGLEVEL:-warning}

View file

@ -1,3 +1,4 @@
#!/bin/zsh #!/bin/zsh
export TZ=UTC
uvicorn app:app --reload --log-level ${S_LOGLEVEL:-warning} uvicorn app:app --reload --log-level ${S_LOGLEVEL:-warning}

View file

@ -58,6 +58,7 @@ def get_event_type(event_type: Union[schemas.EventType, schemas.PerformanceEvent
schemas.EventType.REQUEST: "REQUEST", schemas.EventType.REQUEST: "REQUEST",
schemas.EventType.REQUEST_DETAILS: "REQUEST", schemas.EventType.REQUEST_DETAILS: "REQUEST",
schemas.PerformanceEventType.FETCH_FAILED: "REQUEST", schemas.PerformanceEventType.FETCH_FAILED: "REQUEST",
schemas.GraphqlFilterType.GRAPHQL_NAME: "GRAPHQL",
schemas.EventType.STATE_ACTION: "STATEACTION", schemas.EventType.STATE_ACTION: "STATEACTION",
schemas.EventType.ERROR: "ERROR", schemas.EventType.ERROR: "ERROR",
schemas.PerformanceEventType.LOCATION_AVG_CPU_LOAD: 'PERFORMANCE', schemas.PerformanceEventType.LOCATION_AVG_CPU_LOAD: 'PERFORMANCE',

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
export TZ=UTC
sh env_vars.sh sh env_vars.sh
source /tmp/.env.override source /tmp/.env.override

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
export TZ=UTC
export ASSIST_KEY=ignore export ASSIST_KEY=ignore
sh env_vars.sh sh env_vars.sh
source /tmp/.env.override source /tmp/.env.override

View file

@ -1,4 +1,5 @@
#!/bin/sh #!/bin/sh
export TZ=UTC
export ASSIST_KEY=ignore export ASSIST_KEY=ignore
sh env_vars.sh sh env_vars.sh
source /tmp/.env.override source /tmp/.env.override