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 view bill runs page from legacy UI #925

Merged
merged 16 commits into from
Apr 23, 2024
Merged

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Apr 18, 2024

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

Part of a series of changes to migrate the legacy view bill runs page into this project

This is the final step in migrating the legacy view bill runs page to this project. We dealt with the support services we need in previous changes. Now we need to add

  • the route
  • the controller handler
  • the orchestration service
  • the view template

We also update the menu to point to it and not the legacy /billing/batch/list. Worth noting (because this is the first) we use the convention of naming the handler and subsequent files index to reflect they deal with displaying a list of bill runs, not a single one.

Screenshot 2024-04-22 at 22 50 51

@Cruikshanks Cruikshanks added the enhancement New feature or request label Apr 18, 2024
@Cruikshanks Cruikshanks self-assigned this Apr 18, 2024
https://eaflood.atlassian.net/browse/WATER-4445

> Part of a series of changes to migrate the legacy view bill runs page into this project

This is the final step in migrating the legacy view bill runs page to this project. We dealt with the support services we need in previous changes. Now we need to add

- the route
- the controller handler
- the orchestration service
- the view template

We also update the menu to point to it and not the legacy `/billing/batch/list`. Worth noting (because this is the first) we use the convention of naming the handler and subsequent files `index` to reflect they deal with displaying a list of bill runs, not a single one.
@Cruikshanks Cruikshanks force-pushed the migrate-view-bill-runs branch from ffe5929 to ae3bd2a Compare April 22, 2024 16:08
@Cruikshanks Cruikshanks force-pushed the migrate-view-bill-runs branch from ae3bd2a to 0c34cb8 Compare April 22, 2024 19:35
@Cruikshanks Cruikshanks marked this pull request as ready for review April 22, 2024 19:42
@Cruikshanks Cruikshanks marked this pull request as draft April 22, 2024 20:18
Brings the macro inline with review status and allows us to support inline tags.
Cruikshanks added a commit to DEFRA/water-abstraction-ui that referenced this pull request Apr 22, 2024
https://eaflood.atlassian.net/browse/WATER-4445

> Part of a series of changes to migrate the legacy view bill runs page into this project

This changes updates all links in the legacy UI project to `/billing/batch/list` to use `/system/bill-runs` instead.

Once [Migrate view bill runs page from legacy UI](DEFRA/water-abstraction-system#925) is merged the view will be considered migrated.
@Cruikshanks Cruikshanks marked this pull request as ready for review April 22, 2024 21:52
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.

Just 1 comment

Great feedback in the PR highlighted we were not testing the link generated worked for bill runs in 'review'. This adds that test.
The feedback about checking we were generating the href correctly for bill runs with a 'review' status reminded us we were not properly handling bill runs with a 'cancel' status.

No link should be displayed for these (there is a good chance the bill run will be gone by the time someone clicks the link).

This change covers that omission.
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 0e64948 into main Apr 23, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the migrate-view-bill-runs branch April 23, 2024 13:58
Cruikshanks added a commit to DEFRA/water-abstraction-ui that referenced this pull request Apr 24, 2024
https://eaflood.atlassian.net/browse/WATER-4445

> Part of a series of changes to migrate the legacy view bill runs page into this project

This change updates all links in the legacy UI project to `/billing/batch/list` to use `/system/bill-runs` instead.

Once [Migrate view bill runs page from legacy UI](DEFRA/water-abstraction-system#925) is merged the view will be considered migrated.
Cruikshanks added a commit to DEFRA/water-abstraction-acceptance-tests that referenced this pull request Apr 29, 2024
https://eaflood.atlassian.net/browse/WATER-4445

In [Migrate view bill runs page from legacy UI](DEFRA/water-abstraction-system#925) we were able to implement a new version of the bill runs page!

But that means we need to update any tests that interact with it to use the new selectors we have made available.
Cruikshanks added a commit that referenced this pull request Apr 30, 2024
https://eaflood.atlassian.net/browse/WATER-4445

In [Migrate view bill runs page from legacy UI](#925) we were able to implement a new version of the bill runs page!

But our QA team have spotted that the links to PRESROC bill runs that are in `review` are broken. The links we generate are for our review page when they should be for the legacy one.

This change fixes the issue.
Cruikshanks added a commit that referenced this pull request Apr 30, 2024
https://eaflood.atlassian.net/browse/WATER-4445

In [Migrate view bill runs page from legacy UI](#925) we were able to implement a new version of the bill runs page!

However, our QA team have spotted that the links to PRESROC bill runs that are in `review` are broken. The links we generate are for our review page when they should be for the legacy one.

This change fixes the issue.
Cruikshanks added a commit to DEFRA/water-abstraction-acceptance-tests that referenced this pull request Apr 30, 2024
https://eaflood.atlassian.net/browse/WATER-4445

In [Migrate view bill runs page from legacy UI](DEFRA/water-abstraction-system#925) we were able to implement a new version of the bill runs page!

But that means we need to update any tests that interact with it to use the new selectors we have made available.
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.

3 participants