Skip to content

Commit

Permalink
chore(capman): Pass organization id to replay queries (#50180)
Browse files Browse the repository at this point in the history
Organization id is necessary for snuba allocation policy, changing the
logic to pass it in.
  • Loading branch information
volokluev committed Jun 2, 2023
1 parent 87aeab5 commit 2871e8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sentry/replays/endpoints/project_replay_clicks_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def data_fn(offset, limit):
limit=limit,
offset=offset,
search_filters=search_filters,
organization_id=project.organization.id,
)

return self.paginate(
Expand All @@ -91,6 +92,7 @@ def query_replay_clicks(
limit: int,
offset: int,
search_filters: SearchFilter,
organization_id: int,
):
"""Query replay clicks.
Expand Down Expand Up @@ -152,6 +154,7 @@ def query_replay_clicks(
offset=Offset(offset),
granularity=Granularity(3600),
),
tenant_ids={"organization_id": organization_id, "referrer": "replay-backend-web"},
)
return raw_snql_query(snuba_request, REFERRER)

Expand Down

0 comments on commit 2871e8b

Please sign in to comment.