From 00afd1bd5c11cb129dff63a635a7d3dd44e3f8b5 Mon Sep 17 00:00:00 2001 From: Rowan Seymour Date: Thu, 26 Dec 2024 10:07:54 -0500 Subject: [PATCH] Disallow empty categories --- flows/definition/migrations/testdata/migrations/13.6.0.json | 4 +++- test/testdata/runner/extra.json | 2 ++ test/testdata/runner/extra.test.json | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/flows/definition/migrations/testdata/migrations/13.6.0.json b/flows/definition/migrations/testdata/migrations/13.6.0.json index ee8545269..e813f4e7b 100644 --- a/flows/definition/migrations/testdata/migrations/13.6.0.json +++ b/flows/definition/migrations/testdata/migrations/13.6.0.json @@ -205,7 +205,7 @@ } }, { - "description": "switch router with no result name and missing category name", + "description": "switch router with no result name", "original": { "uuid": "25a2d8b2-ae7c-4fed-964a-506fb8c3f0c0", "name": "Test Flow", @@ -223,6 +223,7 @@ "categories": [ { "uuid": "37d8813f-1402-4ad2-9cc2-e9054a96525b", + "name": "Blue", "exit_uuid": "fc2fcd23-7c4a-44bd-a8c6-6c88e6ed09f8" }, { @@ -269,6 +270,7 @@ "categories": [ { "uuid": "37d8813f-1402-4ad2-9cc2-e9054a96525b", + "name": "Blue", "exit_uuid": "fc2fcd23-7c4a-44bd-a8c6-6c88e6ed09f8" }, { diff --git a/test/testdata/runner/extra.json b/test/testdata/runner/extra.json index 8a6ac3780..0a6f42a7c 100644 --- a/test/testdata/runner/extra.json +++ b/test/testdata/runner/extra.json @@ -94,10 +94,12 @@ "categories": [ { "uuid": "2d481ce6-efcf-4898-a825-f76208e32f2a", + "name": "Has Text", "exit_uuid": "e63af3a0-4c7c-469e-8c5a-01cc38ab872d" }, { "uuid": "0680b01f-ba0b-48f4-a688-d2f963130126", + "name": "No Text", "exit_uuid": "7f156979-1f47-49cd-98b9-e5e6fe0e3baf" } ], diff --git a/test/testdata/runner/extra.test.json b/test/testdata/runner/extra.test.json index ee751a4c7..c2933cd0f 100644 --- a/test/testdata/runner/extra.test.json +++ b/test/testdata/runner/extra.test.json @@ -370,7 +370,7 @@ "type": "msg_received" }, { - "category": "", + "category": "Has Text", "created_on": "2018-07-06T12:30:38.123456789Z", "name": "Continue", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", @@ -569,7 +569,7 @@ "type": "msg_received" }, { - "category": "", + "category": "Has Text", "created_on": "2018-07-06T12:30:38.123456789Z", "name": "Continue", "step_uuid": "970b8069-50f5-4f6f-8f41-6b2d9f33d623", @@ -632,6 +632,7 @@ ], "results": { "continue": { + "category": "Has Text", "created_on": "2018-07-06T12:30:36.123456789Z", "input": "Ryan Lewis", "name": "Continue",