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 check for licence ended in approve rtn vers #1356

Merged

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Sep 25, 2024

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

Part of the work to migrate return versions from NALD to WRLS

We had to make a series of changes in all our projects to move away from using points data held in the permit.licence record's JSONB field when we found that if the licence was 'ended' (dead) water-abstraction-import does not populate the current_version property. This is the only source for points data in the legacy solution.

Then we realised even though you could complete the journey, you'd get an error when you tried to approve the new return version! That is because of WATER-4264, which included the following A/C.

AC5: Check answers for the return requirements (error message for revoked/expired/lapsed licence)
Given I am viewing the 'Check your answers' page
And all the requirements have been entered correctly
When I select the 'Approve returns requirements' button but the licence is revoked, lapsed or expired
Then I will be shown the standard error page.

🤣

So, the final step to support adding return versions for ended licences is to remove the validation check we added to the approval process.

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

> Part of the work to migrate return versions from NALD to WRLS

We had to make a series of changes in all our projects to move away from using points data held in the `permit.licence` record's JSONB field when we found that if the licence was 'ended' (dead) [water-abstraction-import](https://github.com/DEFRA/water-abstraction-import) does not populate the `current_version` property. This is the only source for points data in the legacy solution.

Then we realised even though you could complete the journey, you'd get an error when you tried to approve the new return version! That is because of [WATER-4264](https://eaflood.atlassian.net/browse/WATER-4264) which included the following A/C.

```text
AC5: Check answers for the return requirements (error message for revoked/expired/lapsed licence)
Given I am viewing the 'Check your answers' page
And all the requirements have been entered correctly
When I select the 'Approve returns requirements' button but the licence is revoked, lapsed or expired
Then I will be shown the standard error page.
```

🤣

So, the final step to support adding return versions for ended licences is to remove the validation check we added to the approval process.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Sep 25, 2024
@Cruikshanks Cruikshanks self-assigned this Sep 25, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review September 25, 2024 13:53
@Cruikshanks Cruikshanks merged commit 4512903 into main Sep 25, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the remove-licence-ended-check-from-return-version-setup branch September 25, 2024 16:23
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