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

Update set to draft invalid return version query #1014

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

Cruikshanks
Copy link
Member

https://eaflood.atlassian.net/browse/WATER-4612
https://eaflood.atlassian.net/browse/WATER-4510

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

In Set to 'draft' ret. versions with no requirements we added a query to deal with return versions imported from NALD with no return requirements. These should have been impossible because NALD doesn't have the concept of 'no returns required' return versions. So, they are just the result of NALD's rubbish data validation.

We don't want them impacting our work, such as generating form logs or displaying return versions in the UI. But we also don't want them interfering with the 'no returns required' records we are adding because WRLS will have that ability.

So, the query sets the status to 'draft' any return version with no linked return requirements and where the reason is not one of our 'no returns required' ones.

That was till WATER-4612 changed what the 'no returns required' reasons are!

This change updates the query to match the latest set of reasons.

https://eaflood.atlassian.net/browse/WATER-4612
https://eaflood.atlassian.net/browse/WATER-4510

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

In [Set to 'draft' ret. versions with no requirements](#950) we added a query to deal with return versions imported from NALD with no return requirements. These shouldn't have been possible, because NALD doesn't have the concept of 'no returns required' return versions. So, these are just the result of NALD's rubbish data validation.

We don't want them impacting the work we are doing, for example generating form logs or displaying return versions in the UI. But we also don't want them interfering with the 'no returns required' records we are adding, because WRLS _will_ have that ability.

So, the query sets the status to 'draft' any return version that does not have any linked return requirements and where the reason is not one of our new 'no returns required' ones.

That was till WATER-4612 changed what the 'no returns required' reasons are!

This change updates the query to match the latest set of reasons.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Aug 30, 2024
@Cruikshanks Cruikshanks self-assigned this Aug 30, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review August 30, 2024 09:51
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 99ce9f9 into main Aug 30, 2024
4 checks passed
@Cruikshanks Cruikshanks deleted the update-ret-ver-update-queries branch August 30, 2024 13:59
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.

3 participants