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

Migrate confirm remove licence from bill run page #828

Merged
merged 11 commits into from
Mar 17, 2024

Conversation

Cruikshanks
Copy link
Member

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

Part of a series of changes to add support for removing a bill licence back into the billing views

We're not ready to implement removing a bill licence from a bill run as it depends on sending requests to the Charging Module API and running the legacy refresh job to update everything on our side.

But we can migrate the confirmation page a user sees when removing a licence. Not only is that one less thing in the legacy code but we can also update the view to be consistent with others we've done like

With this in place, we can then fix our billing views and make the Remove licence button visible again!

Screenshot 2024-03-16 at 14 37 10

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

> Part of a series of changes to add support for removing a bill licence back into the billing views

We're not ready to implement removing a bill licence from a bill run as it depends on sending requests to the [Charging Module API](https://github.com/DEFRA/sroc-charging-module-api) and running the legacy refresh job to update everything on our side.

But we can migrate the confirmation page a user sees when removing a licence. Not only is that one less thing in the legacy code but we can also update the view to be consistent with others we've done like

- [Migrate view errored bill run page](#785)
- [Migrate view empty bill run page](#783)
- [Add cancel bill run page](#780)

With this in place we can then fix our billing views and make the [Remove licence button](#824) visible again!
@Cruikshanks Cruikshanks added the enhancement New feature or request label Mar 16, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 16, 2024
@Cruikshanks
Copy link
Member Author

SonarCloud's duplication flagging is valid. We are now running the same query to support determining the billing account name in a few places.

However, we intend to tackle this refactoring in a future PR.

@Cruikshanks Cruikshanks marked this pull request as ready for review March 17, 2024 17:13
@Cruikshanks Cruikshanks merged commit c8f8f15 into main Mar 17, 2024
5 of 6 checks passed
@Cruikshanks Cruikshanks deleted the add-confirm-remove-bill-licence-page branch March 17, 2024 17:13
Cruikshanks added a commit that referenced this pull request Mar 19, 2024
https://eaflood.atlassian.net/browse/WATER-4416

We'd recently spotted that the new billing views we'd developed had dropped a 'Remove licence' button. So, we used that opportunity to [Migrate confirm remove licence from bill run page](#828) and [added the button back in](#824).

But then our conscientious QA team started testing it and found it didn't do what it claimed to do. That was flag the removed licence for the next supplementary bill run. We display the same message on the confirm remove bill from bill run so now doubtful they tested that as well with the same result.

We've [fixed the remove licence issue](DEFRA/water-abstraction-service#2464). But whilst we fix the legacy code for remove bill run this is a great opportunity to also migrate the confirm remove bill from bill run page.
Cruikshanks added a commit that referenced this pull request Mar 20, 2024
https://eaflood.atlassian.net/browse/WATER-4416

We'd recently spotted that the new billing views we'd developed had dropped a 'Remove licence' button. So, we used that opportunity to [Migrate confirm remove licence from bill run page](#828) and [added the button back in](#824).

But then our conscientious QA team started testing it and found it didn't do what it claimed to do. That was to flag the removed licence for the next supplementary bill run. We display the same message on the confirm remove bill from bill run so now doubtful they tested that as well with the same result.

We've [fixed the remove licence issue](DEFRA/water-abstraction-service#2464). But whilst we fix the legacy code for remove bill run this is a great opportunity to also migrate the confirm remove bill from bill run page. Not only is it one less thing in the legacy code but we can also update the view to be consistent with others we've done like

- [Migrate confirm remove licence from bill run page](#828)
- [Migrate view errored bill run page](#785)
- [Migrate view empty bill run page](#783)
- [Add cancel bill run page](#780)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant