diff --git a/.github/actions/render-project-template/action.yml b/.github/actions/render-project-template/action.yml index 7e1a48fa06..3ee45fa262 100644 --- a/.github/actions/render-project-template/action.yml +++ b/.github/actions/render-project-template/action.yml @@ -33,7 +33,7 @@ runs: sed -i '/add new projects here/i \ - '"'"'["${{ inputs.project_name }}"]'"'"'' .github/workflows/service-catalogue.yml sed -i '/add new projects here/i \ - ${{ inputs.project_name }}' .github/workflows/build.yml sed -i '/add new projects here/i \* [${{ steps.project_name.outputs.title_case }}](https://ministryofjustice.github.io/hmpps-probation-integration-services/tech-docs/projects/${{ inputs.project_name }})' doc/tech-docs/source/services.html.md.erb - sed 's/$SERVICE_NAME/${{ inputs.project_name }}/g' templates/runConfiguration.xml > '.idea/runConfigurations/${{ steps.project_name.outputs.underscore }}.xml' + sed 's/$SERVICE_NAME/${{ inputs.project_name }}/g' templates/runConfiguration.xml > '.idea/runConfigurations/${{ inputs.project_name }}.run.xml' - name: Render queue-specific files if: startsWith(inputs.project_template, 'message-listener') diff --git a/.idea/runConfigurations/accredited_programmes_and_oasys.run.xml b/.idea/runConfigurations/accredited_programmes_and_oasys.run.xml new file mode 100644 index 0000000000..bf7bbc1897 --- /dev/null +++ b/.idea/runConfigurations/accredited_programmes_and_oasys.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/accredited_programmes_and_oasys.xml b/.idea/runConfigurations/accredited_programmes_and_oasys.xml deleted file mode 100644 index c9a87cb328..0000000000 --- a/.idea/runConfigurations/accredited_programmes_and_oasys.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/appointment_reminders_and_delius.run.xml b/.idea/runConfigurations/appointment_reminders_and_delius.run.xml new file mode 100644 index 0000000000..e2cfe07e16 --- /dev/null +++ b/.idea/runConfigurations/appointment_reminders_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/appointment_reminders_and_delius.xml b/.idea/runConfigurations/appointment_reminders_and_delius.xml deleted file mode 100644 index ee51450f75..0000000000 --- a/.idea/runConfigurations/appointment_reminders_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/approved_premises_and_delius.run.xml b/.idea/runConfigurations/approved_premises_and_delius.run.xml new file mode 100644 index 0000000000..a87527aa98 --- /dev/null +++ b/.idea/runConfigurations/approved_premises_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/approved_premises_and_delius.xml b/.idea/runConfigurations/approved_premises_and_delius.xml deleted file mode 100644 index fae215c088..0000000000 --- a/.idea/runConfigurations/approved_premises_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/approved_premises_and_oasys.run.xml b/.idea/runConfigurations/approved_premises_and_oasys.run.xml new file mode 100644 index 0000000000..e3b0fe3af6 --- /dev/null +++ b/.idea/runConfigurations/approved_premises_and_oasys.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/approved_premises_and_oasys.xml b/.idea/runConfigurations/approved_premises_and_oasys.xml deleted file mode 100644 index 91a8e91aef..0000000000 --- a/.idea/runConfigurations/approved_premises_and_oasys.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/arns_and_delius.run.xml b/.idea/runConfigurations/arns_and_delius.run.xml new file mode 100644 index 0000000000..a579830fe2 --- /dev/null +++ b/.idea/runConfigurations/arns_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/arns_and_delius.xml b/.idea/runConfigurations/arns_and_delius.xml deleted file mode 100644 index 3d0ceb87c3..0000000000 --- a/.idea/runConfigurations/arns_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/assessment_summary_and_delius.run.xml b/.idea/runConfigurations/assessment_summary_and_delius.run.xml new file mode 100644 index 0000000000..810393bf40 --- /dev/null +++ b/.idea/runConfigurations/assessment_summary_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/assessment_summary_and_delius.xml b/.idea/runConfigurations/assessment_summary_and_delius.xml deleted file mode 100644 index b53e740649..0000000000 --- a/.idea/runConfigurations/assessment_summary_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cas2_and_delius.run.xml b/.idea/runConfigurations/cas2_and_delius.run.xml new file mode 100644 index 0000000000..e1c9faec50 --- /dev/null +++ b/.idea/runConfigurations/cas2_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/cas2_and_delius.xml b/.idea/runConfigurations/cas2_and_delius.xml deleted file mode 100644 index 375b91d251..0000000000 --- a/.idea/runConfigurations/cas2_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/cas3_and_delius.run.xml b/.idea/runConfigurations/cas3_and_delius.run.xml new file mode 100644 index 0000000000..6d4e5dabb6 --- /dev/null +++ b/.idea/runConfigurations/cas3_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/cas3_and_delius.xml b/.idea/runConfigurations/cas3_and_delius.xml deleted file mode 100644 index baafdc0076..0000000000 --- a/.idea/runConfigurations/cas3_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/common_platform_and_delius.run.xml b/.idea/runConfigurations/common_platform_and_delius.run.xml new file mode 100644 index 0000000000..4274fea1ee --- /dev/null +++ b/.idea/runConfigurations/common_platform_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/common_platform_and_delius.xml b/.idea/runConfigurations/common_platform_and_delius.xml deleted file mode 100644 index 6e921d526d..0000000000 --- a/.idea/runConfigurations/common_platform_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/core_person_record_and_delius.run.xml b/.idea/runConfigurations/core_person_record_and_delius.run.xml new file mode 100644 index 0000000000..3ddceaed5c --- /dev/null +++ b/.idea/runConfigurations/core_person_record_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/core_person_record_and_delius.xml b/.idea/runConfigurations/core_person_record_and_delius.xml deleted file mode 100644 index 01246708d0..0000000000 --- a/.idea/runConfigurations/core_person_record_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/court_case_and_delius.run.xml b/.idea/runConfigurations/court_case_and_delius.run.xml new file mode 100644 index 0000000000..e2e705ea25 --- /dev/null +++ b/.idea/runConfigurations/court_case_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/court_case_and_delius.xml b/.idea/runConfigurations/court_case_and_delius.xml deleted file mode 100644 index 1dcf3a960b..0000000000 --- a/.idea/runConfigurations/court_case_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/create_and_vary_a_licence_and_delius.run.xml b/.idea/runConfigurations/create_and_vary_a_licence_and_delius.run.xml new file mode 100644 index 0000000000..27ac3418f9 --- /dev/null +++ b/.idea/runConfigurations/create_and_vary_a_licence_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/create_and_vary_a_licence_and_delius.xml b/.idea/runConfigurations/create_and_vary_a_licence_and_delius.xml deleted file mode 100644 index 50a13ae459..0000000000 --- a/.idea/runConfigurations/create_and_vary_a_licence_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/custody_key_dates_and_delius.run.xml b/.idea/runConfigurations/custody_key_dates_and_delius.run.xml new file mode 100644 index 0000000000..302d699cce --- /dev/null +++ b/.idea/runConfigurations/custody_key_dates_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/custody_key_dates_and_delius.xml b/.idea/runConfigurations/custody_key_dates_and_delius.xml deleted file mode 100644 index af9cc084c5..0000000000 --- a/.idea/runConfigurations/custody_key_dates_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/domain_events_and_delius.run.xml b/.idea/runConfigurations/domain_events_and_delius.run.xml new file mode 100644 index 0000000000..8a6ea5dd09 --- /dev/null +++ b/.idea/runConfigurations/domain_events_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/domain_events_and_delius.xml b/.idea/runConfigurations/domain_events_and_delius.xml deleted file mode 100644 index ac99a2e69c..0000000000 --- a/.idea/runConfigurations/domain_events_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/dps_and_delius.run.xml b/.idea/runConfigurations/dps_and_delius.run.xml new file mode 100644 index 0000000000..a28166adf1 --- /dev/null +++ b/.idea/runConfigurations/dps_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/dps_and_delius.xml b/.idea/runConfigurations/dps_and_delius.xml deleted file mode 100644 index b78127db75..0000000000 --- a/.idea/runConfigurations/dps_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/effective_proposal_framework_and_delius.run.xml b/.idea/runConfigurations/effective_proposal_framework_and_delius.run.xml new file mode 100644 index 0000000000..67d920489c --- /dev/null +++ b/.idea/runConfigurations/effective_proposal_framework_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/effective_proposal_framework_and_delius.xml b/.idea/runConfigurations/effective_proposal_framework_and_delius.xml deleted file mode 100644 index 110a3e8f2e..0000000000 --- a/.idea/runConfigurations/effective_proposal_framework_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/external_api_and_delius.run.xml b/.idea/runConfigurations/external_api_and_delius.run.xml new file mode 100644 index 0000000000..0262a01409 --- /dev/null +++ b/.idea/runConfigurations/external_api_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/external_api_and_delius.xml b/.idea/runConfigurations/external_api_and_delius.xml deleted file mode 100644 index ce953a4bbf..0000000000 --- a/.idea/runConfigurations/external_api_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/hdc_licences_and_delius.run.xml b/.idea/runConfigurations/hdc_licences_and_delius.run.xml new file mode 100644 index 0000000000..781e2dfec1 --- /dev/null +++ b/.idea/runConfigurations/hdc_licences_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/hdc_licences_and_delius.xml b/.idea/runConfigurations/hdc_licences_and_delius.xml deleted file mode 100644 index 04e46d0a6d..0000000000 --- a/.idea/runConfigurations/hdc_licences_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/hmpps_auth_and_delius.run.xml b/.idea/runConfigurations/hmpps_auth_and_delius.run.xml new file mode 100644 index 0000000000..150b08fc88 --- /dev/null +++ b/.idea/runConfigurations/hmpps_auth_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/hmpps_auth_and_delius.xml b/.idea/runConfigurations/hmpps_auth_and_delius.xml deleted file mode 100644 index dc8faa965d..0000000000 --- a/.idea/runConfigurations/hmpps_auth_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/ims_and_delius.run.xml b/.idea/runConfigurations/ims_and_delius.run.xml new file mode 100644 index 0000000000..88c0fdb739 --- /dev/null +++ b/.idea/runConfigurations/ims_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/ims_and_delius.xml b/.idea/runConfigurations/ims_and_delius.xml deleted file mode 100644 index 0e247d4d43..0000000000 --- a/.idea/runConfigurations/ims_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/justice_email_and_delius.run.xml b/.idea/runConfigurations/justice_email_and_delius.run.xml new file mode 100644 index 0000000000..c8608046b1 --- /dev/null +++ b/.idea/runConfigurations/justice_email_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/justice_email_and_delius.xml b/.idea/runConfigurations/justice_email_and_delius.xml deleted file mode 100644 index 7d547a24f7..0000000000 --- a/.idea/runConfigurations/justice_email_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/make_recall_decisions_and_delius.run.xml b/.idea/runConfigurations/make_recall_decisions_and_delius.run.xml new file mode 100644 index 0000000000..3206d17862 --- /dev/null +++ b/.idea/runConfigurations/make_recall_decisions_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/make_recall_decisions_and_delius.xml b/.idea/runConfigurations/make_recall_decisions_and_delius.xml deleted file mode 100644 index 25239cbce5..0000000000 --- a/.idea/runConfigurations/make_recall_decisions_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/manage_offences_and_delius.run.xml b/.idea/runConfigurations/manage_offences_and_delius.run.xml new file mode 100644 index 0000000000..f1a72cee3f --- /dev/null +++ b/.idea/runConfigurations/manage_offences_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/manage_offences_and_delius.xml b/.idea/runConfigurations/manage_offences_and_delius.xml deleted file mode 100644 index 1264ce0186..0000000000 --- a/.idea/runConfigurations/manage_offences_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/manage_pom_cases_and_delius.run.xml b/.idea/runConfigurations/manage_pom_cases_and_delius.run.xml new file mode 100644 index 0000000000..c935693fc3 --- /dev/null +++ b/.idea/runConfigurations/manage_pom_cases_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/manage_pom_cases_and_delius.xml b/.idea/runConfigurations/manage_pom_cases_and_delius.xml deleted file mode 100644 index a4c33a9371..0000000000 --- a/.idea/runConfigurations/manage_pom_cases_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/manage_supervision_and_delius.run.xml b/.idea/runConfigurations/manage_supervision_and_delius.run.xml new file mode 100644 index 0000000000..a7c2d1a87f --- /dev/null +++ b/.idea/runConfigurations/manage_supervision_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/manage_supervision_and_delius.xml b/.idea/runConfigurations/manage_supervision_and_delius.xml deleted file mode 100644 index 4432a13836..0000000000 --- a/.idea/runConfigurations/manage_supervision_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/manage_supervision_and_oasys.run.xml b/.idea/runConfigurations/manage_supervision_and_oasys.run.xml new file mode 100644 index 0000000000..7381628cde --- /dev/null +++ b/.idea/runConfigurations/manage_supervision_and_oasys.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/manage_supervision_and_oasys.xml b/.idea/runConfigurations/manage_supervision_and_oasys.xml deleted file mode 100644 index 9f3f6a83fb..0000000000 --- a/.idea/runConfigurations/manage_supervision_and_oasys.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/oasys_and_delius.run.xml b/.idea/runConfigurations/oasys_and_delius.run.xml new file mode 100644 index 0000000000..ad218f51ec --- /dev/null +++ b/.idea/runConfigurations/oasys_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/oasys_and_delius.xml b/.idea/runConfigurations/oasys_and_delius.xml deleted file mode 100644 index 650b0cf744..0000000000 --- a/.idea/runConfigurations/oasys_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/offender_events_and_delius.run.xml b/.idea/runConfigurations/offender_events_and_delius.run.xml new file mode 100644 index 0000000000..2cdefe3240 --- /dev/null +++ b/.idea/runConfigurations/offender_events_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/offender_events_and_delius.xml b/.idea/runConfigurations/offender_events_and_delius.xml deleted file mode 100644 index 04f4ac1e37..0000000000 --- a/.idea/runConfigurations/offender_events_and_delius.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/opd_and_delius.run.xml b/.idea/runConfigurations/opd_and_delius.run.xml new file mode 100644 index 0000000000..d639900072 --- /dev/null +++ b/.idea/runConfigurations/opd_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/opd_and_delius.xml b/.idea/runConfigurations/opd_and_delius.xml deleted file mode 100644 index 18bd3e7bd0..0000000000 --- a/.idea/runConfigurations/opd_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/pathfinder_and_delius.run.xml b/.idea/runConfigurations/pathfinder_and_delius.run.xml new file mode 100644 index 0000000000..258ed1a5da --- /dev/null +++ b/.idea/runConfigurations/pathfinder_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/pathfinder_and_delius.xml b/.idea/runConfigurations/pathfinder_and_delius.xml deleted file mode 100644 index 7f8983bf72..0000000000 --- a/.idea/runConfigurations/pathfinder_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/pre_sentence_reports_to_delius.run.xml b/.idea/runConfigurations/pre_sentence_reports_to_delius.run.xml new file mode 100644 index 0000000000..6baba08dd5 --- /dev/null +++ b/.idea/runConfigurations/pre_sentence_reports_to_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/pre_sentence_reports_to_delius.xml b/.idea/runConfigurations/pre_sentence_reports_to_delius.xml deleted file mode 100644 index b5cdaeacfb..0000000000 --- a/.idea/runConfigurations/pre_sentence_reports_to_delius.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/prison_case_notes_to_probation.run.xml b/.idea/runConfigurations/prison_case_notes_to_probation.run.xml new file mode 100644 index 0000000000..64d2461698 --- /dev/null +++ b/.idea/runConfigurations/prison_case_notes_to_probation.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/prison_case_notes_to_probation.xml b/.idea/runConfigurations/prison_case_notes_to_probation.xml deleted file mode 100644 index f20d4dcb53..0000000000 --- a/.idea/runConfigurations/prison_case_notes_to_probation.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/prison_custody_status_to_delius.run.xml b/.idea/runConfigurations/prison_custody_status_to_delius.run.xml new file mode 100644 index 0000000000..c2ccf609ee --- /dev/null +++ b/.idea/runConfigurations/prison_custody_status_to_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/prison_custody_status_to_delius.xml b/.idea/runConfigurations/prison_custody_status_to_delius.xml deleted file mode 100644 index 279835144a..0000000000 --- a/.idea/runConfigurations/prison_custody_status_to_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/prison_education_and_delius.run.xml b/.idea/runConfigurations/prison_education_and_delius.run.xml new file mode 100644 index 0000000000..98f006e1cd --- /dev/null +++ b/.idea/runConfigurations/prison_education_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/prison_education_and_delius.xml b/.idea/runConfigurations/prison_education_and_delius.xml deleted file mode 100644 index fed7f3ee02..0000000000 --- a/.idea/runConfigurations/prison_education_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/prison_identifier_and_delius.run.xml b/.idea/runConfigurations/prison_identifier_and_delius.run.xml new file mode 100644 index 0000000000..14bf2279a0 --- /dev/null +++ b/.idea/runConfigurations/prison_identifier_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/prison_identifier_and_delius.xml b/.idea/runConfigurations/prison_identifier_and_delius.xml deleted file mode 100644 index e9a1d4a47c..0000000000 --- a/.idea/runConfigurations/prison_identifier_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - diff --git a/.idea/runConfigurations/prisoner_profile_and_delius.run.xml b/.idea/runConfigurations/prisoner_profile_and_delius.run.xml new file mode 100644 index 0000000000..64e4dd5721 --- /dev/null +++ b/.idea/runConfigurations/prisoner_profile_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/prisoner_profile_and_delius.xml b/.idea/runConfigurations/prisoner_profile_and_delius.xml deleted file mode 100644 index 89dbef33ac..0000000000 --- a/.idea/runConfigurations/prisoner_profile_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/probation_search_and_delius.run.xml b/.idea/runConfigurations/probation_search_and_delius.run.xml new file mode 100644 index 0000000000..cec87429f9 --- /dev/null +++ b/.idea/runConfigurations/probation_search_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/probation_search_and_delius.xml b/.idea/runConfigurations/probation_search_and_delius.xml deleted file mode 100644 index 40c7012df7..0000000000 --- a/.idea/runConfigurations/probation_search_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/refer_and_monitor_and_delius.run.xml b/.idea/runConfigurations/refer_and_monitor_and_delius.run.xml new file mode 100644 index 0000000000..92b961f7aa --- /dev/null +++ b/.idea/runConfigurations/refer_and_monitor_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/refer_and_monitor_and_delius.xml b/.idea/runConfigurations/refer_and_monitor_and_delius.xml deleted file mode 100644 index 772e36dba9..0000000000 --- a/.idea/runConfigurations/refer_and_monitor_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/resettlement_passport_and_delius.run.xml b/.idea/runConfigurations/resettlement_passport_and_delius.run.xml new file mode 100644 index 0000000000..5b5ea06437 --- /dev/null +++ b/.idea/runConfigurations/resettlement_passport_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/resettlement_passport_and_delius.xml b/.idea/runConfigurations/resettlement_passport_and_delius.xml deleted file mode 100644 index 8d17d90b84..0000000000 --- a/.idea/runConfigurations/resettlement_passport_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/risk_assessment_scores_to_delius.run.xml b/.idea/runConfigurations/risk_assessment_scores_to_delius.run.xml new file mode 100644 index 0000000000..58728c3325 --- /dev/null +++ b/.idea/runConfigurations/risk_assessment_scores_to_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/risk_assessment_scores_to_delius.xml b/.idea/runConfigurations/risk_assessment_scores_to_delius.xml deleted file mode 100644 index 0b42735976..0000000000 --- a/.idea/runConfigurations/risk_assessment_scores_to_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/sentence_plan_and_delius.run.xml b/.idea/runConfigurations/sentence_plan_and_delius.run.xml new file mode 100644 index 0000000000..48d60bb7ad --- /dev/null +++ b/.idea/runConfigurations/sentence_plan_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/sentence_plan_and_delius.xml b/.idea/runConfigurations/sentence_plan_and_delius.xml deleted file mode 100644 index c1629b5f9b..0000000000 --- a/.idea/runConfigurations/sentence_plan_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/sentence_plan_and_oasys.run.xml b/.idea/runConfigurations/sentence_plan_and_oasys.run.xml new file mode 100644 index 0000000000..c7e58f08d5 --- /dev/null +++ b/.idea/runConfigurations/sentence_plan_and_oasys.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/sentence_plan_and_oasys.xml b/.idea/runConfigurations/sentence_plan_and_oasys.xml deleted file mode 100644 index e38500dd25..0000000000 --- a/.idea/runConfigurations/sentence_plan_and_oasys.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/soc_and_delius.run.xml b/.idea/runConfigurations/soc_and_delius.run.xml new file mode 100644 index 0000000000..b6d911b0a1 --- /dev/null +++ b/.idea/runConfigurations/soc_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/soc_and_delius.xml b/.idea/runConfigurations/soc_and_delius.xml deleted file mode 100644 index 0a7556eb6e..0000000000 --- a/.idea/runConfigurations/soc_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/subject_access_requests_and_delius.run.xml b/.idea/runConfigurations/subject_access_requests_and_delius.run.xml new file mode 100644 index 0000000000..1136ecbc65 --- /dev/null +++ b/.idea/runConfigurations/subject_access_requests_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/subject_access_requests_and_delius.xml b/.idea/runConfigurations/subject_access_requests_and_delius.xml deleted file mode 100644 index 5f2829d727..0000000000 --- a/.idea/runConfigurations/subject_access_requests_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/tier_to_delius.run.xml b/.idea/runConfigurations/tier_to_delius.run.xml new file mode 100644 index 0000000000..d9b97282d3 --- /dev/null +++ b/.idea/runConfigurations/tier_to_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/tier_to_delius.xml b/.idea/runConfigurations/tier_to_delius.xml deleted file mode 100644 index 0a1157475d..0000000000 --- a/.idea/runConfigurations/tier_to_delius.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/unpaid_work_and_delius.run.xml b/.idea/runConfigurations/unpaid_work_and_delius.run.xml new file mode 100644 index 0000000000..20fbe345a8 --- /dev/null +++ b/.idea/runConfigurations/unpaid_work_and_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/unpaid_work_and_delius.xml b/.idea/runConfigurations/unpaid_work_and_delius.xml deleted file mode 100644 index 16b361cf2e..0000000000 --- a/.idea/runConfigurations/unpaid_work_and_delius.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/runConfigurations/workforce_allocations_to_delius.run.xml b/.idea/runConfigurations/workforce_allocations_to_delius.run.xml new file mode 100644 index 0000000000..b627aac06c --- /dev/null +++ b/.idea/runConfigurations/workforce_allocations_to_delius.run.xml @@ -0,0 +1,29 @@ + + + + + + + + true + true + false + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/workforce_allocations_to_delius.xml b/.idea/runConfigurations/workforce_allocations_to_delius.xml deleted file mode 100644 index 8b01a2480e..0000000000 --- a/.idea/runConfigurations/workforce_allocations_to_delius.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - \ No newline at end of file diff --git a/projects/appointment-reminders-and-delius/README.md b/projects/appointment-reminders-and-delius/README.md index 4515740f75..a4550237e2 100644 --- a/projects/appointment-reminders-and-delius/README.md +++ b/projects/appointment-reminders-and-delius/README.md @@ -1,3 +1,35 @@ -# appointment-reminders-and-delius +# Appointment Reminders and Delius -// TODO Describe the service \ No newline at end of file +## Business Need + +- Sending appointment reminders to people on probation to help improve compliance with supervision activities +- Providing a method of automating the sending of SMS messages via GOV.UK Notify +- Standardising the process of sending SMS appointment reminders across regions + +## Workflows + +### Sending SMS Reminders Based on Delius Data + +The service will send appointment reminders to people on probation by combining the data in _Delius_ and the [GOV.UK Notify](https://www.notifications.service.gov.uk/) service. Data is gathered from Delius, validated and templated SMS messages are sent using the GOV.UK Notify API. + +![Workflow Map](./tech-docs/source/img/east-of-england-upw-reminders.svg) + +### Downloading CSV Data + +A CSV file of the appointment reminders that the service will send on a particular day can be accessed via an API endpoint + +## Interfaces + +### Scheduled Job + +- SMS messages are send via a scheduled job +- Telemetry is send to Application Insights for each SMS message sent + +### API Access Control + +API endpoints are secured by roles supplied by the HMPPS Auth client used in +the requests + +| API Endpoint | Required Role | +|-----------------------|--------------------------------------------------| +| /upw-appointments.csv | PROBATION\_API\_\_REMINDERS\_\_UPW\_APPOINTMENTS | diff --git a/projects/appointment-reminders-and-delius/deploy/values-prod.yml b/projects/appointment-reminders-and-delius/deploy/values-prod.yml index 60c56efbf9..3b5628ba8d 100644 --- a/projects/appointment-reminders-and-delius/deploy/values-prod.yml +++ b/projects/appointment-reminders-and-delius/deploy/values-prod.yml @@ -11,4 +11,4 @@ generic-service: jobs: unpaid-work-appointment-reminders: dry-run: true - schedule: '0 18 * * *' # 6:00pm UTC every day \ No newline at end of file + schedule: '30 18 * * *' # 6:30pm UTC every day \ No newline at end of file diff --git a/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt b/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt index 2b08245809..71481ec84c 100644 --- a/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt +++ b/projects/appointment-reminders-and-delius/src/main/kotlin/uk/gov/justice/digital/hmpps/service/UnpaidWorkAppointmentsService.kt @@ -15,7 +15,7 @@ class UnpaidWorkAppointmentsService( @Value("\${govuk-notify.templates.upw-appointment-reminder}") private val templateId: String, ) { fun sendUnpaidWorkAppointmentReminders(providerCode: String, dryRun: Boolean = false) { - upwAppointmentRepository.getUnpaidWorkAppointments(LocalDate.now().plusDays(2), providerCode) + upwAppointmentRepository.getUnpaidWorkAppointments(LocalDate.now().plusDays(3), providerCode) .forEach { notificationClient.sendSms( templateId, diff --git a/projects/appointment-reminders-and-delius/tech-docs/diag/east-of-england-upw-reminders.d2 b/projects/appointment-reminders-and-delius/tech-docs/diag/east-of-england-upw-reminders.d2 new file mode 100644 index 0000000000..eae41899e9 --- /dev/null +++ b/projects/appointment-reminders-and-delius/tech-docs/diag/east-of-england-upw-reminders.d2 @@ -0,0 +1,79 @@ +# Appointment SMS Flow + +direction: down + +style { ...@../../../../script/style.style } +vars { ...@../../../../script/style.vars } +** { ...@../../../../script/style.all-style } + +data: Delius Data { + "" { + explanation: |md + Name, mobile number and appointment date + | + } +} + +deduplicate: Deduplication { + "" { + explanation: |md + Where there are multiple appointments for a mobile number\ + only send a single reminder + | + } +} + +validate: Validation { + validate_person: Person Validation { + explanation: |md + - The person is not in custody or on remand + - The person is not unlawfully at large + - The person is not Limited Access + | + } + + validate_comms: Communication Validation { + explanation: |md + - The mobile number is formatted correctly + - The person has not opted out of SMS contacts + | + } + + validate_activity: Activity Validation { + explanation: |md + - The person has an active unpaid work requirement + - The unpaid work requirement is not related to\ + Education, Training and Employment + - There is time remaining on the unpaid work requirement + - The appointment does not have an outcome + | + } +} + +ok: Validation OK +fail: Validation Fail + +send: Send SMS { + notify: GOV.UK Notify { + explanation: |md + Send SMS appointment reminder to person on probation + | + } +} + +end1: End { + shape: circle +} + +end2: End { + shape: circle +} + +data -> validate +validate -> ok: OK +validate -> fail: Fail + +ok -> deduplicate +deduplicate -> send +send -> end1 +fail -> end2 diff --git a/projects/appointment-reminders-and-delius/tech-docs/source/img/east-of-england-upw-reminders.svg b/projects/appointment-reminders-and-delius/tech-docs/source/img/east-of-england-upw-reminders.svg new file mode 100644 index 0000000000..77b7928bf6 --- /dev/null +++ b/projects/appointment-reminders-and-delius/tech-docs/source/img/east-of-england-upw-reminders.svg @@ -0,0 +1,888 @@ +Delius DataDeduplicationValidationValidation OKValidation FailSend SMSEndEndPerson ValidationCommunication ValidationActivity ValidationGOV.UK Notify

Name, mobile number and appointment date

+

Where there are multiple appointments for a mobile number
+only send a single reminder

+
    +
  • The person is not in custody or on remand
  • +
  • The person is not unlawfully at large
  • +
  • The person is not Limited Access
  • +
+
    +
  • The mobile number is formatted correctly
  • +
  • The person has not opted out of SMS contacts
  • +
+
    +
  • The person has an active unpaid work requirement
  • +
  • The unpaid work requirement is not related to
    +Education, Training and Employment
  • +
  • There is time remaining on the unpaid work requirement
  • +
  • The appointment does not have an outcome
  • +
+

Send SMS appointment reminder to person on probation

+
OKFail + + + + + + + + + + + + + + + + + + + + + +
diff --git a/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/ProbationCaseDataLoader.kt b/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/ProbationCaseDataLoader.kt index 56deb3a926..2194d12f44 100644 --- a/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/ProbationCaseDataLoader.kt +++ b/projects/approved-premises-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/ProbationCaseDataLoader.kt @@ -14,6 +14,7 @@ import uk.gov.justice.digital.hmpps.entity.LimitedAccessPerson import uk.gov.justice.digital.hmpps.entity.Restriction import uk.gov.justice.digital.hmpps.integrations.delius.approvedpremises.referral.entity.EventRepository import uk.gov.justice.digital.hmpps.integrations.delius.person.Ldu +import uk.gov.justice.digital.hmpps.integrations.delius.person.ProbationCase import uk.gov.justice.digital.hmpps.integrations.delius.person.ProbationCaseRepository import uk.gov.justice.digital.hmpps.integrations.delius.person.manager.probation.PersonManagerRepository import uk.gov.justice.digital.hmpps.integrations.delius.person.offence.entity.AdditionalOffence @@ -100,9 +101,34 @@ class ProbationCaseDataLoader( ) ) + listOf( + ProbationCaseGenerator.CASE_COMPLEX, + ProbationCaseGenerator.CASE_X320741, + ProbationCaseGenerator.CASE_LAO_RESTRICTED, + ProbationCaseGenerator.CASE_LAO_EXCLUSION, + ).forEach { + generateEventAndAddOffences(probationCase = it) + } + + personalCircumstanceTypeRepository.saveAll(PersonalCircumstanceGenerator.PC_TYPES) + personalCircumstanceSubTypeRepository.saveAll(PersonalCircumstanceGenerator.PC_SUB_TYPES) + personalCircumstanceRepository.save( + PersonalCircumstanceGenerator.generate( + ProbationCaseGenerator.CASE_COMPLEX.id, + PersonalCircumstanceGenerator.PC_TYPES.first { it.code == PersonalCircumstanceType.Code.VETERAN.value }, + PersonalCircumstanceGenerator.PC_SUB_TYPES.first { it.description == PersonalCircumstanceType.Code.VETERAN.value + "SUB" } + )) + + mutableLimitedAccessPersonRepository.save(RESTRICTED_CASE) + mutableLimitedAccessPersonRepository.save(EXCLUDED_CASE) + restrictionRepository.save(LimitedAccessGenerator.generateRestriction(RESTRICTED_CASE.toLimitedAccessPerson())) + exclusionRepository.save(LimitedAccessGenerator.generateExclusion(EXCLUDED_CASE.toLimitedAccessPerson())) + } + + private fun generateEventAndAddOffences(probationCase: ProbationCase) { val event = PersonGenerator.generateEvent( "1", - ProbationCaseGenerator.CASE_COMPLEX.id + probationCase.id ).apply(eventRepository::save) mainOffenceRepository.save( @@ -120,20 +146,6 @@ class ProbationCaseDataLoader( LocalDate.now().minusDays(5) ) ) - - personalCircumstanceTypeRepository.saveAll(PersonalCircumstanceGenerator.PC_TYPES) - personalCircumstanceSubTypeRepository.saveAll(PersonalCircumstanceGenerator.PC_SUB_TYPES) - personalCircumstanceRepository.save( - PersonalCircumstanceGenerator.generate( - ProbationCaseGenerator.CASE_COMPLEX.id, - PersonalCircumstanceGenerator.PC_TYPES.first { it.code == PersonalCircumstanceType.Code.VETERAN.value }, - PersonalCircumstanceGenerator.PC_SUB_TYPES.first { it.description == PersonalCircumstanceType.Code.VETERAN.value + "SUB" } - )) - - mutableLimitedAccessPersonRepository.save(RESTRICTED_CASE) - mutableLimitedAccessPersonRepository.save(EXCLUDED_CASE) - restrictionRepository.save(LimitedAccessGenerator.generateRestriction(RESTRICTED_CASE.toLimitedAccessPerson())) - exclusionRepository.save(LimitedAccessGenerator.generateExclusion(EXCLUDED_CASE.toLimitedAccessPerson())) } } diff --git a/templates/runConfiguration.xml b/templates/runConfiguration.xml index 7ac101736d..75a9d1e251 100644 --- a/templates/runConfiguration.xml +++ b/templates/runConfiguration.xml @@ -1,12 +1,29 @@ - - \ No newline at end of file