Skip to content

Conversation

@dnimmo
Copy link
Contributor

@dnimmo dnimmo commented Dec 3, 2025

This removes the send_message_batch functionality which is no longer being used, as well as the ApiClient class which was only being used by send_message_batch.

Also updates documentation to reflect both send_message_batch and retries being removed.

Original ticket here.

@dnimmo dnimmo requested a review from a team December 3, 2025 14:08
Copy link
Contributor

@steventux steventux left a comment

Choose a reason for hiding this comment

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

We need to remove smb (send message batch) job here: https://github.com/NHSDigital/dtos-manage-breast-screening/blob/main/scripts/python/smoke_test/notifications_smoke_test.py#L26
Smoke tests don't run on review apps but they do run on dev and preprod.

@dnimmo
Copy link
Contributor Author

dnimmo commented Dec 3, 2025

We need to remove smb (send message batch) job here: https://github.com/NHSDigital/dtos-manage-breast-screening/blob/main/scripts/python/smoke_test/notifications_smoke_test.py#L26 Smoke tests don't run on review apps but they do run on dev and preprod.

Cheers @steventux - missed that one. 🤦 Done now

Copy link
Contributor

@steventux steventux left a comment

Choose a reason for hiding this comment

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

If you are removing the ApiClient in this PR, it probably makes sense to also remove the message batch presenter.
Have we coordinate with Manage around removing internals like the client and presenter? I know we don't need to hang on to unused code but these things might be useful sooner rather than later. It might be more prudent just to remove the commands for now.

@dnimmo
Copy link
Contributor Author

dnimmo commented Dec 4, 2025

If you are removing the ApiClient in this PR, it probably makes sense to also remove the message batch presenter. Have we coordinate with Manage around removing internals like the client and presenter? I know we don't need to hang on to unused code but these things might be useful sooner rather than later. It might be more prudent just to remove the commands for now.

Fair point, maybe I got a little over-eager. :D I'll put the ApiClient back and let Manage decide its fate

Copy link
Contributor

@steventux steventux left a comment

Choose a reason for hiding this comment

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

I think the RoutingPlan configuration class might also be a candidate for removal as it is very tailored to episode type but not necessarily in this PR. I assume we will have a few internals like this we can review later. The main thing is to remove unnecessary commands.
Only other outlier I can think of is how the removal of this might affect monitoring?

@dnimmo
Copy link
Contributor Author

dnimmo commented Dec 4, 2025

Yeah, I think we need to have a think about monitoring on the whole anyway given the changes in approach. And agreed re: RoutingPlan.

@dnimmo dnimmo merged commit 517b4c2 into main Dec 4, 2025
12 checks passed
@dnimmo dnimmo deleted the DTOSS-11767 branch December 4, 2025 10:46
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