|
@@ -14,7 +14,7 @@ from django.forms import ValidationError
|
|
|
from django.utils import timezone as django_timezone
|
|
|
from snuba_sdk import Column, Condition, Limit, Op
|
|
|
|
|
|
-from sentry import analytics, audit_log, features, quotas
|
|
|
+from sentry import analytics, audit_log, quotas
|
|
|
from sentry.auth.access import SystemAccess
|
|
|
from sentry.constants import CRASH_RATE_ALERT_AGGREGATE_ALIAS, ObjectStatus
|
|
|
from sentry.incidents import tasks
|
|
@@ -467,7 +467,6 @@ query_datasets_to_type = {
|
|
|
Dataset.Events: SnubaQuery.Type.ERROR,
|
|
|
Dataset.Transactions: SnubaQuery.Type.PERFORMANCE,
|
|
|
Dataset.PerformanceMetrics: SnubaQuery.Type.PERFORMANCE,
|
|
|
- Dataset.Sessions: SnubaQuery.Type.CRASH_RATE,
|
|
|
Dataset.Metrics: SnubaQuery.Type.CRASH_RATE,
|
|
|
}
|
|
|
|
|
@@ -726,11 +725,6 @@ def update_alert_rule(
|
|
|
if include_all_projects is not None:
|
|
|
updated_fields["include_all_projects"] = include_all_projects
|
|
|
if dataset is not None:
|
|
|
- if dataset == Dataset.Sessions and features.has(
|
|
|
- "organizations:alert-crash-free-metrics", alert_rule.organization, actor=user
|
|
|
- ):
|
|
|
- dataset = Dataset.Metrics
|
|
|
-
|
|
|
if dataset.value != alert_rule.snuba_query.dataset:
|
|
|
updated_query_fields["dataset"] = dataset
|
|
|
if query_type is not None:
|