Skip to content

Commit

Permalink
Disallow empty categories
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Dec 26, 2024
1 parent e503134 commit 00afd1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion flows/definition/migrations/testdata/migrations/13.6.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -223,6 +223,7 @@
"categories": [
{
"uuid": "37d8813f-1402-4ad2-9cc2-e9054a96525b",
"name": "Blue",
"exit_uuid": "fc2fcd23-7c4a-44bd-a8c6-6c88e6ed09f8"
},
{
Expand Down Expand Up @@ -269,6 +270,7 @@
"categories": [
{
"uuid": "37d8813f-1402-4ad2-9cc2-e9054a96525b",
"name": "Blue",
"exit_uuid": "fc2fcd23-7c4a-44bd-a8c6-6c88e6ed09f8"
},
{
Expand Down
2 changes: 2 additions & 0 deletions test/testdata/runner/extra.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
],
Expand Down
5 changes: 3 additions & 2 deletions test/testdata/runner/extra.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -632,6 +632,7 @@
],
"results": {
"continue": {
"category": "Has Text",
"created_on": "2018-07-06T12:30:36.123456789Z",
"input": "Ryan Lewis",
"name": "Continue",
Expand Down

0 comments on commit 00afd1b

Please sign in to comment.