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

Add submit cancel bill run endpoint #782

Merged
merged 6 commits into from
Mar 1, 2024

Conversation

Cruikshanks
Copy link
Member

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

We need to add this to support our work to improve how bill runs are cancelled. Basically, replace the crummy legacy one!

In Add cancel bill run page we add the page where the user confirms they want to cancel (delete) the bill run.

This final step implements the service that will do the cancelling and the endpoint to trigger it.

Unlike the legacy version when we cancel a bill run, we'll

  • immediately update the bill run status to cancel
  • redirect the user to the bill runs page
  • continue the process of cancelling the bill run in the background

This way the user should never see a timeout waiting for a bill run to cancel ever again. It also puts the service into a state where we can start to display to users that a bill run is in the process of being cancelled, the end goal of WATER-4387.

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

We need to add this to support our work to improve how bill runs are cancelled. Basically, replace the crummy legacy one!

In [Add cancel bill run page](#780) we add the page where the user confirms they want to cancel (delete) the bill run.

This final step implements the service that will do the cancelling and the endpoint to trigger it.

Unlike the legacy version when we cancel a bill run we'll

- immediately update the bill run status to `cancel`
- redirect the user to the bill runs page
- continue the process of cancelling the bill run in the background

This way the user should never see a timeout waiting for a bill run to cancel ever again. It also puts the service into a state where we can start to display to users that a bill run is in the process of being cancelled, the end goal of WATER-4387.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Mar 1, 2024
@Cruikshanks Cruikshanks self-assigned this Mar 1, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review March 1, 2024 18:44
@Cruikshanks Cruikshanks merged commit b91165a into main Mar 1, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the add-submit-cancel-print-endpoint branch March 1, 2024 18:45
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