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

Fix workflow start date in view licence set up tab #1176

Merged
merged 4 commits into from
Jul 9, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Jul 9, 2024

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

In testing of the new view licence page, specifically the licence set up tab, it was spotted that when a charge version has a status of REVIEW that the date the record was created rather than the start date is displayed in the charge information table.

We fixed that in Fix dates in view licence set up tab. But hot on its heels, someone has pointed out that the same applies for a workflow record with a status of changes_requested.

So, this change fixes it, so we display the charge version start date for a workflow record with a status of changes_requested in the charge information table of the Licence setup tab in our new view licence page.


Because this meant looking at another workflow status, we needed to check that everything was linked up for changes_requested. This led us to take another look at how the status for each record type in the tab was being determined. We decided to split the types to give us more flexibility and use the same convention we've used in other tags, i.e. pass the record status through and let the macro handle the display.

So, a change to our tag macros was also made in this change.

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

In testing of the new view licence page, specifically the licence set up tab, it was spotted that when a charge version has a status of `REVIEW` that the date the record was created rather than the start date is displayed in the charge information table.

We fixed that in [Fix dates in view licence set up tab](#1175). But hot on its heels someone has pointed out the same applies for a workflow record with a status of `changes_requested`.

So, this change fixes it so we display the charge version start date for a workflow record with a status of `changes_requested` in the charge information table of the Licence setup tab in our new view licence page.
@Cruikshanks Cruikshanks added the bug Something isn't working label Jul 9, 2024
@Cruikshanks Cruikshanks self-assigned this Jul 9, 2024
This changes updates the status tags for charge versions (including workflow) and return versions so that

- they only expect what we actually store in the DB (these are custom types so can only be these values)
- that the tag macros follow the convention we've used in others

We also split out the tag handling for return and charge versions to make it easier to see what we would expect to handle and to give us more flexibility should that change.
@Cruikshanks Cruikshanks marked this pull request as ready for review July 9, 2024 16:59
@Cruikshanks Cruikshanks merged commit 590c392 into main Jul 9, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the fix-start-date-in-charge-versions-view-again branch July 9, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant