Skip to content

Commit 8b337f9

Browse files
committed
only set one
1 parent 7b63805 commit 8b337f9

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/sentry/workflow_engine/migration_helpers/alert_rule.py

-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ def migrate_alert_rule(
234234
workflow = create_workflow(alert_rule.name, organization_id, data_condition_group, user)
235235
detector = create_detector(alert_rule, project.id, data_condition_group, user)
236236

237-
detector.data_sources.set([data_source])
238237
data_source.detectors.set([detector])
239238
detector_state = DetectorState.objects.create(
240239
detector=detector,

src/sentry/workflow_engine/models/data_condition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def evaluate_value(self, value: T) -> DataConditionResult:
104104
op: Callable | None = None
105105

106106
try:
107-
# Use a custom hanler
107+
# Use a custom handler
108108
condition_handler = self.get_condition_handler()
109109
except NoRegistrationExistsError:
110110
# If it's not a custom handler, use the default operators

0 commit comments

Comments
 (0)