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

Remove POST create bill run route #1418

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4201

When we first added SROC supplementary billing to this project, creation of the bill run was triggered from water-abstraction-ui.

Later, we added SROC two-part tariff annual billing. That required a change to the create bill run journey, so we took the opportunity to migrate it to this project.

This means we no longer expect the legacy UI to trigger bill runs. The endpoint it was using is now defunct. But also, it means we can simplify our bill run creation/initialisation logic because we no longer have to consider two trigger points.

We have been working on SROC two-part tariff supplementary recently. We're ready to stitch all the pieces we've built together, the first step being triggering the bill run. Our journey now includes the option, but it hasn't been updated to check whether a user can create a two-part tariff supplementary bill run (based on the state of existing bill runs).

That will complicate the create/initiate process even more. So, as a preparatory step, we're simplifying things first by dropping the old POST create bill run route.

@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Oct 17, 2024
@Cruikshanks Cruikshanks self-assigned this Oct 17, 2024
https://eaflood.atlassian.net/browse/WATER-4201

When we first added SROC supplementary billing to this project, creation of the bill run was triggered from [water-abstraction-ui](https://github.com/DEFRA/water-abstraction-ui).

Later, we've added SROC two-part tariff annual billing. That required a change to the create bill run journey, so we took the opportunity to migrate it to this project.

This means we no longer expect the legacy UI to trigger bill runs. The end point it was using is now defunct. But also, it means we can simplify our bill run creation/initialisation logic because we no longer have to consider there being two trigger points.

The thing we have been working on recently is SROC two-part tariff supplementary. We're ready to stitch all the pieces we've built together, the first step being triggering the bill run. Our journey now includes the option, but it hasn't been updated to check whether a user _can_ create a two-part tariff supplementary bill run (based on state of existing bill runs).

That's going to complete the create/initiate process even further. So, as a preparatory step, we're simplifying things first by dropping the old POST create bill run route.
@Cruikshanks Cruikshanks force-pushed the remove-post-create-bill-run branch from 6393d6e to 5df7d9f Compare October 17, 2024 13:01
@Cruikshanks Cruikshanks marked this pull request as ready for review October 17, 2024 13:50
Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

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

@Cruikshanks Cruikshanks merged commit 6135ba0 into main Oct 17, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the remove-post-create-bill-run branch October 17, 2024 15:55
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.

2 participants