Skip to content

Commit

Permalink
feat(metrics): Add metricSecond to allowed category (#70442)
Browse files Browse the repository at this point in the history
  • Loading branch information
scttcper committed May 7, 2024
1 parent ef6c79a commit 277f026
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sentry/api/endpoints/organization_stats_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@ def get(self, request: Request, organization) -> Response:
with self.handle_query_errors():

if features.has("organizations:metrics-stats", organization):
if request.GET.get("category") == "metrics":
if (
request.GET.get("category") == "metrics"
or request.GET.get("category") == "metricSecond"
):
# TODO(metrics): align project resolution
result = run_metrics_outcomes_query(
request.GET,
Expand Down

0 comments on commit 277f026

Please sign in to comment.