Skip to content

Commit

Permalink
ref(querybuilder): Change replay meta to use snuba params (#75187)
Browse files Browse the repository at this point in the history
- This updates replay meta to use the new snuba params instead
  • Loading branch information
wmak authored Jul 29, 2024
1 parent b11fb60 commit 3dc95d7
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ def get(self, request: Request, organization) -> Response:
return Response(status=404)

try:
params = self.get_snuba_params(request, organization, check_global_views=False)
snuba_params, _ = self.get_snuba_dataclass(
request, organization, check_global_views=False
)
except NoProjects:
return Response({"count": 0})

Expand All @@ -53,7 +55,8 @@ def data_fn(offset, limit):
query_details = {
"selected_columns": self.get_field_list(organization, request),
"query": request.GET.get("query"),
"params": params,
"params": {},
"snuba_params": snuba_params,
"equations": self.get_equation_list(organization, request),
"orderby": self.get_orderby(request),
"offset": offset,
Expand All @@ -74,7 +77,7 @@ def data_fn(offset, limit):
on_results=lambda results: self.handle_results_with_meta(
request,
organization,
params["project_id"],
snuba_params.project_ids,
results,
standard_meta=True,
),
Expand Down

0 comments on commit 3dc95d7

Please sign in to comment.