Skip to content

Commit

Permalink
fix(alerts): Add feature flag for anomaly detection charts (getsentry…
Browse files Browse the repository at this point in the history
…#77120)

add the flag

Fixes SENTRY-3EG4
  • Loading branch information
ceorourke authored Sep 7, 2024
1 parent 56460a2 commit 95a783c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/sentry/features/temporary.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def register_temporary_features(manager: FeatureManager):
manager.add("organizations:anomaly-detection-alerts", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
# Enable anomaly detection alerts
manager.add("organizations:fake-anomaly-detection", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=False)
# Enable anomaly detection charts
manager.add("organizations:anomaly-detection-alerts-charts", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=False)
# Enable anr frame analysis
manager.add("organizations:anr-analyze-frames", OrganizationFeature, FeatureHandlerStrategy.FLAGPOLE, api_expose=True)
# Enable auth provider configuration through api
Expand Down
1 change: 0 additions & 1 deletion src/sentry/incidents/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ def build_metric_alert_chart(
user,
),
}
# NOTE: 'anomaly-detection-alerts-charts' flag does not exist
# Flag can be enabled IF we want to enable marked lines/areas for anomalies in the future
# For now, we defer to incident lines as indicators for anomalies
if (
Expand Down

0 comments on commit 95a783c

Please sign in to comment.