Api v1.14.0 (#1404)

* feature(chalice): include sample_rate in get projects response
This commit is contained in:
Kraiem Taha Yassine 2023-07-11 14:13:40 +01:00 committed by GitHub
parent 440ebca03b
commit 09d16bee10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ def get_projects(tenant_id: int, gdpr: bool = False, recorded: bool = False, use
query = cur.mogrify(f"""{"SELECT *, first_recorded IS NOT NULL AS recorded FROM (" if recorded else ""}
SELECT s.project_id, s.name, s.project_key, s.save_request_payloads, s.first_recorded_session_at,
created_at, sessions_last_check_at {extra_projection}
created_at, sessions_last_check_at, sample_rate {extra_projection}
FROM public.projects AS s
{role_query if user_id is not None else ""}
WHERE s.tenant_id =%(tenant_id)s