Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Upgrade to Django 4.2 #18653

Merged
merged 52 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
78d795a
Upgrade dependencies
webjunkie Nov 15, 2023
60c4351
Fix middleware error
webjunkie Nov 15, 2023
cb6b389
Upgrade psycopg
webjunkie Nov 15, 2023
f764d13
Go to Django 4.1 because of problems with psycopg3
webjunkie Nov 16, 2023
197cdc8
Update query snapshots
github-actions[bot] Nov 16, 2023
1513680
Update query snapshots
github-actions[bot] Nov 16, 2023
eabba3b
Update query snapshots
github-actions[bot] Nov 16, 2023
d0d6ee6
Update query snapshots
github-actions[bot] Nov 16, 2023
fd8212d
Switch TaggedItem tests to assert ValidationError
webjunkie Nov 16, 2023
bb8d7a5
Remove type: ignore comments
webjunkie Nov 16, 2023
faad0ca
Update query snapshots
github-actions[bot] Nov 16, 2023
c474c03
Figure out psycopg problem and try Django 4.2 again
webjunkie Nov 16, 2023
a1731eb
Update query snapshots
github-actions[bot] Nov 16, 2023
15fe236
Fix other IN errors
webjunkie Nov 16, 2023
9c9bcb4
Fix getting status
webjunkie Nov 17, 2023
677d38a
Fix psycopg3 issues
webjunkie Nov 17, 2023
9cc26d4
Fix psycopg issues
webjunkie Nov 17, 2023
1dfef28
Update query snapshots
github-actions[bot] Nov 17, 2023
3170b03
Update query snapshots
github-actions[bot] Nov 17, 2023
ccba439
Update query snapshots
github-actions[bot] Nov 17, 2023
210ef2e
Merge branch 'master' into chore/Django-4
webjunkie Dec 11, 2023
8eb8a77
Update query snapshots
github-actions[bot] Dec 11, 2023
97f35db
Merge branch 'master' into chore/Django-4
webjunkie Feb 13, 2024
8d44eea
Update deps
webjunkie Feb 13, 2024
2dfa67c
Update query snapshots
github-actions[bot] Feb 13, 2024
89e0728
Update query snapshots
github-actions[bot] Feb 13, 2024
2b6b6d9
Update query snapshots
github-actions[bot] Feb 13, 2024
63833af
Update query snapshots
github-actions[bot] Feb 13, 2024
e444658
Fix more tests
webjunkie Feb 14, 2024
6fcc0c9
Merge branch 'master' into chore/Django-4
webjunkie Mar 20, 2024
a7ef5df
Adjust baseline
webjunkie Mar 20, 2024
d8d212b
Remove sqlcommenter (should be PostgresQL only anyways)
webjunkie Mar 20, 2024
d24e7f4
Fix file
webjunkie Mar 20, 2024
62a6965
Update query snapshots
github-actions[bot] Mar 20, 2024
48c8ac9
Update query snapshots
github-actions[bot] Mar 20, 2024
94368c6
Update query snapshots
github-actions[bot] Mar 20, 2024
180548e
Merge branch 'master' into chore/Django-4
webjunkie Apr 2, 2024
e9db3ac
Fix queries
webjunkie Apr 2, 2024
8e95b93
Fix query
webjunkie Apr 2, 2024
4fc7873
Revert
webjunkie Apr 2, 2024
2724b91
Update requirements.in
webjunkie Apr 2, 2024
c2a7ef8
Remove restore-virtualenv
webjunkie Apr 2, 2024
d22a44e
Revert "Remove restore-virtualenv"
webjunkie Apr 2, 2024
53b965b
Merge branch 'master' of github.com:PostHog/posthog into chore/Django-4
neilkakkar Apr 3, 2024
8c0d9c4
mypy
neilkakkar Apr 3, 2024
70e54d3
Adjust num queries
webjunkie Apr 4, 2024
b91b5e5
Adjust num queries
webjunkie Apr 4, 2024
e1b37a5
Adjust num queries
webjunkie Apr 4, 2024
f0d9fdc
Update query snapshots
github-actions[bot] Apr 4, 2024
007d96b
Merge branch 'master' into chore/Django-4
webjunkie Apr 8, 2024
3f2bf63
Add to updated_fields
webjunkie Apr 8, 2024
f0cfd29
Merge branch 'master' into chore/Django-4
webjunkie Apr 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions ee/api/test/__snapshots__/test_organization_resource_access.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"posthog_user"."events_column_config"
FROM "posthog_user"
WHERE "posthog_user"."id" = 2
LIMIT 21 /**/
LIMIT 21
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.1
Expand All @@ -53,7 +53,7 @@
"posthog_organization"."available_features"
FROM "posthog_organization"
WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember where they're set but it looks like the useful SQL commenting has stopped working

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems Google gave this sqlcommenter to opentelemetry and it was not updated in a long time.

This might be where it ended up:
https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/django/django.html#sqlcommenter

However, then there's this about supporting psycopg3, which I think might be the problem we have:
open-telemetry/opentelemetry-python-contrib#1751

How much do we need it anyways?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh dang it!

It's pretty useful for knowing where the request is coming from, specially when looking in, say, pganalyze for most popular sources of sql requests.

But, we do this manually for clickhouse ourselves, so wonder if there's an easy / small-scoped way to just do it ourselves

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've investigated further and also tried to use the middleware from opentelemetry that has some modifications as it seems.
Unfortunately, then immediately the following issue comes up 🥴
open-telemetry/opentelemetry-python-contrib#1554

It seems there are some differences between how the queries are handled and how the wrappers are executed. This would also explain why the pg_sleep wrapper has no effect anymore.

I'd say for now I'll make another PR just to upgrade to Django 4.1, where I had all CI green. Or does anyone have any suggestions?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep... a step on the road that works 🚀

LIMIT 21
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.10
Expand All @@ -79,7 +79,7 @@
"posthog_organization"."available_features"
FROM "posthog_organization"
WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.11
Expand All @@ -88,7 +88,7 @@
FROM "posthog_organizationmembership"
WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
AND "posthog_organizationmembership"."user_id" = 2)
LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 1
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.12
Expand All @@ -102,14 +102,14 @@
FROM "posthog_organizationmembership"
WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
AND "posthog_organizationmembership"."user_id" = 2)
LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.13
'''
SELECT COUNT(*) AS "__count"
FROM "ee_organizationresourceaccess"
WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.14
Expand All @@ -123,7 +123,7 @@
"ee_organizationresourceaccess"."updated_at"
FROM "ee_organizationresourceaccess"
WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 100 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 100
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.2
Expand All @@ -149,7 +149,7 @@
"posthog_organization"."available_features"
FROM "posthog_organization"
WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.3
Expand All @@ -158,7 +158,7 @@
FROM "posthog_organizationmembership"
WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
AND "posthog_organizationmembership"."user_id" = 2)
LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 1
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.4
Expand All @@ -172,7 +172,7 @@
FROM "posthog_organizationmembership"
WHERE ("posthog_organizationmembership"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
AND "posthog_organizationmembership"."user_id" = 2)
LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.5
Expand All @@ -183,14 +183,14 @@
FROM "posthog_instancesetting"
WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED'
ORDER BY "posthog_instancesetting"."id" ASC
LIMIT 1 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 1
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.6
'''
SELECT COUNT(*) AS "__count"
FROM "ee_organizationresourceaccess"
WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.7
Expand All @@ -204,7 +204,7 @@
"ee_organizationresourceaccess"."updated_at"
FROM "ee_organizationresourceaccess"
WHERE "ee_organizationresourceaccess"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 100 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 100
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.8
Expand Down Expand Up @@ -235,7 +235,7 @@
"posthog_user"."events_column_config"
FROM "posthog_user"
WHERE "posthog_user"."id" = 2
LIMIT 21 /**/
LIMIT 21
'''
# ---
# name: TestOrganizationResourceAccessAPI.test_list_organization_resource_access_is_not_nplus1.9
Expand All @@ -261,6 +261,6 @@
"posthog_organization"."available_features"
FROM "posthog_organization"
WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21 /*controller='organization_resource_access-list',route='api/organizations/%28%3FP%3Cparent_lookup_organization_id%3E%5B%5E/.%5D%2B%29/resource_access/%3F%24'*/
LIMIT 21
'''
# ---
2 changes: 1 addition & 1 deletion posthog/api/instance_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def list(self, request: Request) -> Response:
}
)
if postgres_alive:
postgres_version = connection.cursor().connection.server_version
postgres_version = connection.cursor().connection.info.server_version
metrics.append(
{
"key": "pg_version",
Expand Down
16 changes: 8 additions & 8 deletions posthog/api/property_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def with_properties_to_filter(self, properties_to_filter: Optional[str]) -> "Que
if properties_to_filter:
return dataclasses.replace(
self,
name_filter="AND name IN %(names)s",
params={**self.params, "names": tuple(properties_to_filter.split(","))},
name_filter="AND name = ANY(%(names)s)",
params={**self.params, "names": properties_to_filter.split(",")},
)
else:
return self
Expand All @@ -141,7 +141,7 @@ def with_is_numerical_flag(self, is_numerical: Optional[str]) -> "QueryContext":
if is_numerical:
return dataclasses.replace(
self,
numerical_filter="AND is_numerical = true AND name NOT IN ('distinct_id', 'timestamp')",
numerical_filter="AND is_numerical = true AND NOT name = ANY(ARRAY['distinct_id', 'timestamp'])",
)
else:
return self
Expand Down Expand Up @@ -207,7 +207,7 @@ def with_event_property_filter(

if event_names and len(event_names) > 0:
event_property_field = f"{self.posthog_eventproperty_table_join_alias}.property is not null"
event_name_join_filter = "AND event in %(event_names)s"
event_name_join_filter = "AND event = ANY(%(event_names)s)"

return dataclasses.replace(
self,
Expand All @@ -216,7 +216,7 @@ def with_event_property_filter(
event_name_join_filter=event_name_join_filter,
event_name_filter=event_name_filter,
event_property_join_type="INNER JOIN" if filter_by_event_names else "LEFT JOIN",
params={**self.params, "event_names": tuple(event_names or [])},
params={**self.params, "event_names": event_names or []},
)

def with_search(self, search_query: str, search_kwargs: Dict) -> "QueryContext":
Expand All @@ -230,7 +230,7 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str
if excluded_properties:
excluded_properties = json.loads(excluded_properties)

excluded_list = tuple(
excluded_list = list(
set.union(
set(excluded_properties or []),
EVENTS_HIDDEN_PROPERTY_DEFINITIONS if type == "event" else [],
Expand All @@ -239,7 +239,7 @@ def with_excluded_properties(self, excluded_properties: Optional[str], type: str
return dataclasses.replace(
self,
excluded_properties_filter=(
f"AND {self.property_definition_table}.name NOT IN %(excluded_properties)s"
f"AND NOT {self.property_definition_table}.name = ANY(%(excluded_properties)s)"
if len(excluded_list) > 0
else ""
),
Expand Down Expand Up @@ -350,7 +350,7 @@ def add_name_alias_to_search_query(search_term: str):

if not entries:
return ""
return f"""OR name IN ({", ".join(entries)})"""
return f"""OR name = ANY(ARRAY[{", ".join(entries)}])"""


def add_latest_means_not_initial(search_term: str):
Expand Down
36 changes: 18 additions & 18 deletions posthog/api/test/__snapshots__/test_action.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"posthog_user"."events_column_config"
FROM "posthog_user"
WHERE "posthog_user"."id" = 2
LIMIT 21 /**/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.1
Expand Down Expand Up @@ -80,7 +80,7 @@
"posthog_team"."external_data_workspace_last_synced_at"
FROM "posthog_team"
WHERE "posthog_team"."id" = 2
LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.10
Expand Down Expand Up @@ -134,7 +134,7 @@
GROUP BY "posthog_action"."id",
"posthog_user"."id"
ORDER BY "posthog_action"."last_calculated_at" DESC,
"posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
"posthog_action"."name" ASC
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.11
Expand All @@ -158,7 +158,7 @@
3,
4,
5 /* ... */)
ORDER BY "posthog_actionstep"."id" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
ORDER BY "posthog_actionstep"."id" ASC
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.12
Expand Down Expand Up @@ -189,7 +189,7 @@
"posthog_user"."events_column_config"
FROM "posthog_user"
WHERE "posthog_user"."id" = 2
LIMIT 21 /**/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.13
Expand Down Expand Up @@ -242,7 +242,7 @@
"posthog_team"."external_data_workspace_last_synced_at"
FROM "posthog_team"
WHERE "posthog_team"."id" = 2
LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.14
Expand Down Expand Up @@ -274,7 +274,7 @@
"posthog_organization"."available_features"
FROM "posthog_organizationmembership"
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
WHERE "posthog_organizationmembership"."user_id" = 2
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.15
Expand All @@ -300,7 +300,7 @@
"posthog_organization"."available_features"
FROM "posthog_organization"
WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.16
Expand Down Expand Up @@ -354,7 +354,7 @@
GROUP BY "posthog_action"."id",
"posthog_user"."id"
ORDER BY "posthog_action"."last_calculated_at" DESC,
"posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
"posthog_action"."name" ASC
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.17
Expand All @@ -378,7 +378,7 @@
3,
4,
5 /* ... */)
ORDER BY "posthog_actionstep"."id" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
ORDER BY "posthog_actionstep"."id" ASC
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.2
Expand Down Expand Up @@ -410,7 +410,7 @@
"posthog_organization"."available_features"
FROM "posthog_organizationmembership"
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
WHERE "posthog_organizationmembership"."user_id" = 2
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.3
Expand All @@ -421,7 +421,7 @@
FROM "posthog_instancesetting"
WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED'
ORDER BY "posthog_instancesetting"."id" ASC
LIMIT 1 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
LIMIT 1
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.4
Expand All @@ -447,7 +447,7 @@
"posthog_organization"."available_features"
FROM "posthog_organization"
WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.5
Expand Down Expand Up @@ -501,7 +501,7 @@
GROUP BY "posthog_action"."id",
"posthog_user"."id"
ORDER BY "posthog_action"."last_calculated_at" DESC,
"posthog_action"."name" ASC /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
"posthog_action"."name" ASC
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.6
Expand Down Expand Up @@ -532,7 +532,7 @@
"posthog_user"."events_column_config"
FROM "posthog_user"
WHERE "posthog_user"."id" = 2
LIMIT 21 /**/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.7
Expand Down Expand Up @@ -585,7 +585,7 @@
"posthog_team"."external_data_workspace_last_synced_at"
FROM "posthog_team"
WHERE "posthog_team"."id" = 2
LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
LIMIT 21
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.8
Expand Down Expand Up @@ -617,7 +617,7 @@
"posthog_organization"."available_features"
FROM "posthog_organizationmembership"
INNER JOIN "posthog_organization" ON ("posthog_organizationmembership"."organization_id" = "posthog_organization"."id")
WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
WHERE "posthog_organizationmembership"."user_id" = 2
'''
# ---
# name: TestActionApi.test_listing_actions_is_not_nplus1.9
Expand All @@ -643,6 +643,6 @@
"posthog_organization"."available_features"
FROM "posthog_organization"
WHERE "posthog_organization"."id" = '00000000-0000-0000-0000-000000000000'::uuid
LIMIT 21 /*controller='project_actions-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/actions/%3F%24'*/
LIMIT 21
'''
# ---
Loading
Loading