Skip to content

Commit 9202d69

Browse files
committed
update test, update how we check for fallthrough type
1 parent 831f987 commit 9202d69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/sentry/workflow_engine/migrations/0104_action_data_fallthrough_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def migrate_fallthrough_type(apps: StateApps, schema_editor: BaseDatabaseSchemaEditor) -> None:
1212
Action = apps.get_model("workflow_engine", "Action")
1313
for action in RangeQuerySetWrapper(Action.objects.all()):
14-
if action.data.get("fallthroughType"):
14+
if "fallthroughType" in action.data:
1515
new_data = action.data.copy()
1616
del new_data["fallthroughType"]
1717
new_data["fallthrough_type"] = action.data["fallthroughType"]

tests/sentry/workflow_engine/migrations/test_0104_action_data_fallthrough_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
class TestActionDataFallthroughType(TestMigrations):
8-
migrate_from = "0103_action_data_fallthrough_type"
8+
migrate_from = "0103_add_unique_constraint"
99
migrate_to = "0104_action_data_fallthrough_type"
1010
app = "workflow_engine"
1111

0 commit comments

Comments
 (0)