feat(api): EE get save_request_payloads state
This commit is contained in:
parent
85446575d5
commit
bf0c10166f
1 changed files with 3 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ def get_projects(tenant_id, recording_state=False, gdpr=None, recorded=False, st
|
|||
cur.execute(
|
||||
cur.mogrify(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 ''}
|
||||
|
|
@ -121,7 +121,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