Skip to content

Commit 3ce2b4d

Browse files
committed
comment about datacondition type
1 parent 7610d5c commit 3ce2b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/workflow_engine/migrations/0012_migrate_metric_alerts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def migrate_metric_alerts(apps: Apps, schema_editor: BaseDatabaseSchemaEditor) -
140140
condition=trigger.threshold_type,
141141
comparison=trigger.alert_threshold,
142142
condition_result=condition_result,
143-
type=DataSourceType.SNUBA_QUERY_SUBSCRIPTION, # is this correct?
143+
type="metric_alert", # this will probably change by the time we actually do the migration
144144
)
145145
# missing DataConditionDetails because this table doesn't exist yet
146146
trigger_actions = AlertRuleTriggerAction.objects.filter(

0 commit comments

Comments
 (0)