Skip to content

Commit

Permalink
Add privacy_notice_url to onboarding
Browse files Browse the repository at this point in the history
This allows the URL to be specified as part of the onboarding process,
setting the value on the organisations.
  • Loading branch information
thomasleese committed Jan 16, 2025
1 parent f7c5941 commit 6a43247
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/onboarding/coventry-model-office.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ organisation:
phone: 07700 900815
ods_code: RYG
careplus_venue_code: CWPTSI
privacy_policy_url: https://www.covwarkpt.nhs.uk/download.cfm?ver=8286
privacy_notice_url: https://www.covwarkpt.nhs.uk/download.cfm?ver=8286
privacy_policy_url: https://www.covwarkpt.nhs.uk/privacy

programmes: [hpv]

Expand Down
3 changes: 2 additions & 1 deletion docs/onboarding.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ organisation:
phone: # Contact phone number
ods_code: # Unique ODS code
careplus_venue_code: # Venue code used in CarePlus exports
privacy_policy_url: # URL of a privacy policy sent to parents
privacy_notice_url: # URL of a privacy notice shown to parents
privacy_policy_url: # URL of a privacy policy shown to parents
reply_to_id: # Optional GOV.UK Notify Reply-To UUID

programmes: [] # A list of programmes, currently only hpv is valid
Expand Down
3 changes: 2 additions & 1 deletion spec/fixtures/files/onboarding/valid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ organisation:
phone: 07700 900815
ods_code: EXAMPLE
careplus_venue_code: EXAMPLE
privacy_policy_url: https://example.com/privacy
privacy_notice_url: https://example.com/privacy-notice
privacy_policy_url: https://example.com/privacy-policy

programmes: [hpv]

Expand Down
1 change: 1 addition & 0 deletions spec/models/onboarding_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"organisation.name": ["can't be blank"],
"organisation.ods_code": ["can't be blank"],
"organisation.phone": ["can't be blank", "is invalid"],
"organisation.privacy_notice_url": ["can't be blank"],
"organisation.privacy_policy_url": ["can't be blank"],
"school.0.team": ["can't be blank"],
"school.1.team": ["can't be blank"],
Expand Down

0 comments on commit 6a43247

Please sign in to comment.