Skip to content

Commit

Permalink
Add reply_to_id to onboarding
Browse files Browse the repository at this point in the history
This updates the onboarding task and example template to allow providing
a `reply_to_id` for each team.
  • Loading branch information
thomasleese committed Dec 16, 2024
1 parent 8424f0a commit 3451c29
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/onboarding.md
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ teams:
name: # Name of the team
email: # Contact email address
phone: # Contact phone number
reply_to_id: # Optional GOV.UK Notify Reply-To UUID

schools:
team1: [] # URNs managed by a particular team
1 change: 1 addition & 0 deletions spec/fixtures/files/onboarding/valid.yaml
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ teams:
name: Team 1
email: team-1@trust.nhs.uk
phone: 07700 900816
reply_to_id: 24af66c3-d6bd-4b9f-8067-3844f49e08d0
team_2:
name: Team 2
email: team-2@trust.nhs.uk
2 changes: 2 additions & 0 deletions spec/models/onboarding_spec.rb
Original file line number Diff line number Diff line change
@@ -31,10 +31,12 @@
team1 = organisation.teams.find_by!(name: "Team 1")
expect(team1.email).to eq("team-1@trust.nhs.uk")
expect(team1.phone).to eq("07700 900816")
expect(team1.reply_to_id).to eq("24af66c3-d6bd-4b9f-8067-3844f49e08d0")

team2 = organisation.teams.find_by!(name: "Team 2")
expect(team2.email).to eq("team-2@trust.nhs.uk")
expect(team2.phone).to eq("07700 900817")
expect(team2.reply_to_id).to be_nil

expect(team1.schools).to contain_exactly(school1, school2)
expect(team2.schools).to contain_exactly(school3, school4)

0 comments on commit 3451c29

Please sign in to comment.