Skip to content

Comments

Only send notifications on working days#383

Merged
steventux merged 2 commits intomainfrom
send-notifications-on-working-days
Sep 16, 2025
Merged

Only send notifications on working days#383
steventux merged 2 commits intomainfrom
send-notifications-on-working-days

Conversation

@steventux
Copy link
Contributor

@steventux steventux commented Sep 10, 2025

Description

Restricts the sending of message batches to weekdays.
Adds the ability to define a calendar of holidays although holidays dates TBC.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-10896

Review notes

I've opted for using business-python as we are going to add a calendar of holidays ensuring that we only send out message batches when the BSOs are open and able to amend bookings etc.

@steventux steventux force-pushed the send-notifications-on-working-days branch from 4e0cbc8 to 38b3cf8 Compare September 10, 2025 14:23
@steventux steventux marked this pull request as ready for review September 10, 2025 14:36
@steventux steventux requested a review from a team September 10, 2025 14:36
@steventux steventux changed the title Send notifications on working days Only send notifications on working days Sep 10, 2025
Copy link
Contributor

@Harriethw Harriethw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very clean! and some nice tidying up on the test

As part of adding this library the maximum python version had to be set to <4.0.0
Given there's no active development of Python 4 this doesn't seem to contentious.
Use the default working days from the business days python library to ensure we don't send message batch requests to Notify at the weekend, this reduces the chances of people receiving notifications when the BSOs are closed.
We may want to define a calendar of holidays which is supported by the business days library.
@steventux steventux force-pushed the send-notifications-on-working-days branch from 38b3cf8 to 6f03de0 Compare September 16, 2025 08:42
@steventux steventux merged commit 8926345 into main Sep 16, 2025
11 checks passed
@steventux steventux deleted the send-notifications-on-working-days branch September 16, 2025 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants