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 note reset in Ret. Vers. note update #1013

Merged
merged 3 commits into from
Aug 30, 2024

Conversation

Cruikshanks
Copy link
Member

@Cruikshanks Cruikshanks commented Aug 30, 2024

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

Part of the work to migrate return version management from NALD to WRLS

In Fix return version note creation from requirements, we amended the way we updated water.return_versions notes from water.return_requirements descriptions after spotting a flaw in the original logic.

However, because the flaw shipped, we needed to reset all notes before running the new version of the query. We only needed to run the reset once, but we don't have the luxury of doing that easily in production!

So, instead, we had the notes update query always run the reset before updating the notes.

The fix has now been released, and we've confirmed it corrected the return version notes. So we can remove the reset from the query we are running.

> Part of the work to migrate return version management from NALD to WRLS

In [Fix return version note creation from requirements](#1004) we amended the way we were updating `water.return_versions` notes from `water.return_requirements` descriptions having spotted a flaw in the original logic.

But because the flaw shipped, we needed to reset all notes before running the new version of the query. We only needed to run the reset once, but we don't have the luxury of doing that easily in production!

So, instead we had the notes update query always run the reset before then updating the notes.

The fix has [now been released](https://github.com/DEFRA/water-abstraction-import/releases/tag/v2.30.0) and we've confirmed it corrected the return version notes. So, we can remove the reset from the query we are running.
@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
Now we know the notes are corrected, the only ones we need to set are new return versions inserted during the import. Everything else will already have had their notes set.

This tweak ensures we are only updating those that have not yet had their note set.
@Cruikshanks Cruikshanks marked this pull request as ready for review August 30, 2024 08:30
@Cruikshanks Cruikshanks merged commit 6037548 into main Aug 30, 2024
4 checks passed
@Cruikshanks Cruikshanks deleted the remove-ret-ver-note-reset branch August 30, 2024 09:52
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.

4 participants