* fix(chalice): fixed Math-operators validation
refactor(chalice): search for sessions that have events for heatmaps

* refactor(chalice): search for sessions that have at least 1 location event for heatmaps

* fix(chalice): fixed Math-operators validation
refactor(chalice): search for sessions that have events for heatmaps

* refactor(chalice): search for sessions that have at least 1 location event for heatmaps

* feat(chalice): autocomplete return top 10 with stats

* fix(chalice): fixed autocomplete top 10 meta-filters

* refactor(chalice): added dynatrace to the list of supported integrations
This commit is contained in:
Kraiem Taha Yassine 2024-11-13 16:50:49 +01:00 committed by GitHub
parent aaf7830dc4
commit 1375c14337
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 12 additions and 3 deletions

1
api/.gitignore vendored
View file

@ -176,3 +176,4 @@ SUBNETS.json
./chalicelib/.configs
README/*
.local
/.dev/

View file

@ -54,7 +54,10 @@ def get_global_integrations_status(tenant_id, user_id, project_id):
WHERE type='slack' AND deleted_at ISNULL)) AS {schemas.IntegrationType.SLACK.value},
EXISTS((SELECT 1
FROM public.webhooks
WHERE type='msteams' AND deleted_at ISNULL)) AS {schemas.IntegrationType.MS_TEAMS.value};""",
WHERE type='msteams' AND deleted_at ISNULL)) AS {schemas.IntegrationType.MS_TEAMS.value},
EXISTS((SELECT 1
FROM public.integrations
WHERE project_id=%(project_id)s AND provider='dynatrace')) AS {schemas.IntegrationType.DYNATRACE.value};""",
{"user_id": user_id, "tenant_id": tenant_id, "project_id": project_id})
)
current_integrations = cur.fetchone()

View file

@ -1425,6 +1425,7 @@ class IntegrationType(str, Enum):
STACKDRIVER = "STACKDRIVER"
CLOUDWATCH = "CLOUDWATCH"
NEWRELIC = "NEWRELIC"
DYNATRACE = "DYNATRACE"
class SearchNoteSchema(_PaginatedSchema):

1
ee/api/.gitignore vendored
View file

@ -278,3 +278,4 @@ Pipfile.lock
/chalicelib/core/spot.py
/chalicelib/core/unprocessed_sessions.py
/run-db_init-dev.sh
/.dev/

View file

@ -54,7 +54,10 @@ def get_global_integrations_status(tenant_id, user_id, project_id):
WHERE type='slack' AND tenant_id=%(tenant_id)s AND deleted_at ISNULL)) AS {schemas.IntegrationType.SLACK.value},
EXISTS((SELECT 1
FROM public.webhooks
WHERE type='msteams' AND tenant_id=%(tenant_id)s AND deleted_at ISNULL)) AS {schemas.IntegrationType.MS_TEAMS.value};""",
WHERE type='msteams' AND tenant_id=%(tenant_id)s AND deleted_at ISNULL)) AS {schemas.IntegrationType.MS_TEAMS.value},
EXISTS((SELECT 1
FROM public.integrations
WHERE project_id=%(project_id)s AND provider='dynatrace')) AS {schemas.IntegrationType.DYNATRACE.value};""",
{"user_id": user_id, "tenant_id": tenant_id, "project_id": project_id})
)
current_integrations = cur.fetchone()