Skip to content

Commit

Permalink
feat: custom /query rate limit when using personal API key (#28184)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
orian and github-actions[bot] authored Feb 4, 2025
1 parent 9eecfe5 commit 23f6b23
Show file tree
Hide file tree
Showing 24 changed files with 670 additions and 253 deletions.
1 change: 1 addition & 0 deletions posthog/admin/admins/team_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class TeamAdmin(admin.ModelAdmin):
"session_recording_sample_rate",
"session_recording_minimum_duration_milliseconds",
"session_recording_linked_flag",
"api_query_rate_limit",
"data_attributes",
"session_recording_version",
"access_control",
Expand Down
9 changes: 6 additions & 3 deletions posthog/api/test/__snapshots__/test_action.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"posthog_team"."correlation_config",
"posthog_team"."session_recording_retention_period_days",
"posthog_team"."external_data_workspace_id",
"posthog_team"."external_data_workspace_last_synced_at"
"posthog_team"."external_data_workspace_last_synced_at",
"posthog_team"."api_query_rate_limit"
FROM "posthog_team"
WHERE "posthog_team"."id" = 99999
LIMIT 21
Expand Down Expand Up @@ -404,7 +405,8 @@
"posthog_team"."correlation_config",
"posthog_team"."session_recording_retention_period_days",
"posthog_team"."external_data_workspace_id",
"posthog_team"."external_data_workspace_last_synced_at"
"posthog_team"."external_data_workspace_last_synced_at",
"posthog_team"."api_query_rate_limit"
FROM "posthog_team"
WHERE "posthog_team"."id" = 99999
LIMIT 21
Expand Down Expand Up @@ -923,7 +925,8 @@
"posthog_team"."correlation_config",
"posthog_team"."session_recording_retention_period_days",
"posthog_team"."external_data_workspace_id",
"posthog_team"."external_data_workspace_last_synced_at"
"posthog_team"."external_data_workspace_last_synced_at",
"posthog_team"."api_query_rate_limit"
FROM "posthog_team"
WHERE "posthog_team"."id" = 99999
LIMIT 21
Expand Down
9 changes: 6 additions & 3 deletions posthog/api/test/__snapshots__/test_annotation.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@
"posthog_team"."correlation_config",
"posthog_team"."session_recording_retention_period_days",
"posthog_team"."external_data_workspace_id",
"posthog_team"."external_data_workspace_last_synced_at"
"posthog_team"."external_data_workspace_last_synced_at",
"posthog_team"."api_query_rate_limit"
FROM "posthog_team"
WHERE "posthog_team"."id" = 99999
LIMIT 21
Expand Down Expand Up @@ -399,7 +400,8 @@
"posthog_team"."correlation_config",
"posthog_team"."session_recording_retention_period_days",
"posthog_team"."external_data_workspace_id",
"posthog_team"."external_data_workspace_last_synced_at"
"posthog_team"."external_data_workspace_last_synced_at",
"posthog_team"."api_query_rate_limit"
FROM "posthog_team"
WHERE "posthog_team"."id" = 99999
LIMIT 21
Expand Down Expand Up @@ -850,7 +852,8 @@
"posthog_team"."correlation_config",
"posthog_team"."session_recording_retention_period_days",
"posthog_team"."external_data_workspace_id",
"posthog_team"."external_data_workspace_last_synced_at"
"posthog_team"."external_data_workspace_last_synced_at",
"posthog_team"."api_query_rate_limit"
FROM "posthog_team"
WHERE "posthog_team"."id" = 99999
LIMIT 21
Expand Down
Loading

0 comments on commit 23f6b23

Please sign in to comment.