Skip to content

Commit 0c5da35

Browse files
committed
Add workgroup to onboarding
When onboarding a new team we need to ensure the workgroup is provided as it's a required field on teams. Jira-Issue: MAV-1280
1 parent 84eb88d commit 0c5da35

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

app/models/onboarding.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Onboarding
2828
privacy_notice_url
2929
privacy_policy_url
3030
reply_to_id
31+
workgroup
3132
].freeze
3233

3334
SUBTEAM_ATTRIBUTES = %i[

spec/fixtures/files/onboarding/valid.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ team:
99
careplus_venue_code: EXAMPLE
1010
privacy_notice_url: https://example.com/privacy-notice
1111
privacy_policy_url: https://example.com/privacy-policy
12+
workgroup: nhstrust
1213

1314
programmes: [hpv]
1415

spec/models/onboarding_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"team.phone": ["can't be blank", "is invalid"],
8686
"team.privacy_notice_url": ["can't be blank"],
8787
"team.privacy_policy_url": ["can't be blank"],
88+
"team.workgroup": ["can't be blank"],
8889
"school.0.subteam": ["can't be blank"],
8990
"school.1.subteam": ["can't be blank"],
9091
"school.2.status": ["is not included in the list"],

spec/requests/api/testing/onboard_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"team.phone" => ["can't be blank", "is invalid"],
6565
"team.privacy_notice_url" => ["can't be blank"],
6666
"team.privacy_policy_url" => ["can't be blank"],
67+
"team.workgroup" => ["can't be blank"],
6768
"programmes" => ["can't be blank"],
6869
"school.0.location" => ["can't be blank"],
6970
"school.0.status" => ["is not included in the list"],

0 commit comments

Comments
 (0)