Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace live bill run checking in engine #843

Merged
merged 3 commits into from
Mar 21, 2024
Merged

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4416
https://eaflood.atlassian.net/browse/WATER-4379

We spotted an issue with removing a bill from a bill run and it not setting the supplementary flags on the licences involved correctly. We've fixed that, but it's led to our QA team rigorously re-creating bill runs over and over.

Doing this they spotted we did have an issue with the CheckLiveBillRunService that we fixed in Fix broken CheckLiveBillRunService.

Now they've spotted something else. CheckLiveBillRunService includes batch type as a filter. This means it will allow you to create a supplementary bill run, for example, even if another type of bill run is 'in progress' (queued, processing, or ready). At the time we thought that was ok but now we know better.

We spotted this in our work to migrate the setup bill run journey (see Handle bill run setup matches an existing bill run). We hoped we'd be using our version of the journey by now and we could quietly retire CheckLiveBillRunService as part of ongoing maintenance and no one would be any the wiser (it has been live for 7 months now!)

However, our QA team would rather clear the issues currently found before bringing in the new setup journey for testing.

So, rather than fix the service, we'll replace it with DetermineBlockingBillRunService which matches what the legacy service does and deals with this scenario.

https://eaflood.atlassian.net/browse/WATER-4416
https://eaflood.atlassian.net/browse/WATER-4379

We spotted an issue with removing a bill from a bill run not setting the supplementary flags on a the licences involved correctly. We've fixed that, but its led to our QA team rigorously re-creating bill runs over and over.

Doing this they spotted we did have an issue with the `CheckLiveBillRunService` that we fixed in [Fix broken CheckLiveBillRunService](#841).

Now they've spotted something else. `CheckLiveBillRunService` includes batch type as a filter. This means it _will_ allow you to create a supplementary bill run, for example, even if another type of bill run is 'in progress' (queued, processing, or ready). AT the time we thought that was ok but now we know better.

We had actually spotted this in our work to migrate the setup bill run journey (see [Handle bill run setup matches an existing bill run](#810)). We hoped we'd be using our version of the journey by now and we could quietly retire `CheckLiveBillRunService` as part of ongoing maintenance and no one would be any the wiser (it has been live for 7 months now!)

But our QA team would rather clear the issues currently found before bringing in the new setup journey for testing.

So, rather than fix the service, we'll replace it with `DetermineBlockingBillRunService` which matches what the legacy service does and deals with this scenario.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Mar 20, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 20, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review March 21, 2024 00:25
@Cruikshanks Cruikshanks merged commit 81abc4c into main Mar 21, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-check-live-bill-run branch March 21, 2024 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
housekeeping Refactoring, tidying up or other work which supports the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant