-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(flags): Remove graduated dashboards-mep feature flag #108809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,7 +104,6 @@ def get_features( | |
| ) -> Mapping[str, bool | None]: | ||
| feature_names = [ | ||
| "organizations:performance-use-metrics", | ||
| "organizations:dashboards-mep", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dead
|
||
| "organizations:mep-rollout-flag", | ||
| ] | ||
| batch_features = features.batch_has( | ||
|
|
@@ -300,19 +299,7 @@ def get_event_stats( | |
|
|
||
| self._emit_analytics_event(organization, referrer) | ||
|
|
||
| batch_features = self.get_features(organization, request) | ||
| use_metrics = ( | ||
| batch_features.get("organizations:performance-use-metrics", False) | ||
| or batch_features.get("organizations:dashboards-mep", False) | ||
| or ( | ||
| batch_features.get("organizations:mep-rollout-flag", False) | ||
| and features.has( | ||
| "organizations:dynamic-sampling", | ||
| organization=organization, | ||
| actor=request.user, | ||
| ) | ||
| ) | ||
| ) | ||
| use_metrics = True | ||
|
|
||
| if top_events > 0: | ||
| raw_groupby = self.get_field_list(organization, request, param_name="groupBy") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -192,7 +192,6 @@ def get_metrics_features( | |
| "organizations:mep-rollout-flag", | ||
| "organizations:dynamic-sampling", | ||
| "organizations:performance-use-metrics", | ||
| "organizations:dashboards-mep", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dead
|
||
| ] | ||
| batch_features = features.batch_has( | ||
| feature_names, | ||
|
|
@@ -264,17 +263,7 @@ def validate(self, data): | |
| data["issue_query_error"] = {"conditions": [f"Invalid conditions: {err}"]} | ||
|
|
||
| try: | ||
| batch_features = self.get_metrics_features( | ||
| self.context.get("organization"), self.context.get("user") | ||
| ) | ||
| use_metrics = bool( | ||
| ( | ||
| batch_features.get("organizations:mep-rollout-flag", False) | ||
| and batch_features.get("organizations:dynamic-sampling", False) | ||
| ) | ||
| or batch_features.get("organizations:performance-use-metrics", False) | ||
| or batch_features.get("organizations:dashboards-mep", False) | ||
| ) | ||
| use_metrics = True | ||
| # When using the eps/epm functions, they require an interval argument | ||
| # or to provide the start/end so that the interval can be computed. | ||
| # This uses a hard coded start/end to ensure the validation succeeds | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.