feat(api): get save_request_payloads with the projects info
This commit is contained in:
parent
642618046a
commit
ba9ca1d060
1 changed files with 3 additions and 2 deletions
|
|
@ -57,7 +57,7 @@ def get_projects(tenant_id, recording_state=False, gdpr=None, recorded=False, st
|
|||
|
||||
cur.execute(f"""\
|
||||
SELECT
|
||||
s.project_id, s.name, s.project_key
|
||||
s.project_id, s.name, s.project_key, s.save_request_payloads
|
||||
{',s.gdpr' if gdpr else ''}
|
||||
{',COALESCE((SELECT TRUE FROM public.sessions WHERE sessions.project_id = s.project_id LIMIT 1), FALSE) AS recorded' if recorded else ''}
|
||||
{',stack_integrations.count>0 AS stack_integrations' if stack_integrations else ''}
|
||||
|
|
@ -109,7 +109,8 @@ def get_project(tenant_id, project_id, include_last_session=False, include_gdpr=
|
|||
SELECT
|
||||
s.project_id,
|
||||
s.project_key,
|
||||
s.name
|
||||
s.name,
|
||||
s.save_request_payloads
|
||||
{",(SELECT max(ss.start_ts) FROM public.sessions AS ss WHERE ss.project_id = %(project_id)s) AS last_recorded_session_at" if include_last_session else ""}
|
||||
{',s.gdpr' if include_gdpr else ''}
|
||||
{tracker_query}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue