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

Alan's Update prev. ret. vers. post new version #1248

Closed
wants to merge 28 commits into from

Conversation

Cruikshanks
Copy link
Member

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

A couple of suggested alternative solutions to the one presented in Update existing return versions when a new one is added.

  1. It avoids the need to first extract all return versions and then identify which previous versions to update 'in code'. The checks are done within the queries sent to the database. In most cases, a single query will be fired at the database. But there is a possibility of making 4 calls to the database

  2. As currently, it extracts all return versions from the database and then identifies which version to update 'in code'. But it breaks the work down rather than doing it all in one large method.

Jozzey and others added 25 commits July 31, 2024 11:36
https://eaflood.atlassian.net/browse/WATER-4568

Having worked out how to convert the information in the return requirements setup session into the various records in the DB (see #1137) we now need to deal with how the new record impacts the existing ones.

This PR will extend the persisting logic to deal with changes to the existing return versions.
This variable will be used to check if additional processing is required when inserting a new return version
Co-authored-by: Alan Cruikshanks <[email protected]>
https://eaflood.atlassian.net/browse/WATER-4568

A couple of suggested alternative solutions to the one presented in [Update existing return versions when a new one is added](#1216).

1. It avoids the need to first extract _all_ return versions and then identify which previous versions to update 'in code'. The checks are done within the queries sent to the database. In most cases a single query will be fired at the database. But there is a possibility of making 4 calls to the database

2. As currently it extracts _all_ return versions from the database and then identifies which version to update 'in code'. But it breaks the work down rather than doing it all in one large method.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Aug 8, 2024
@Cruikshanks Cruikshanks self-assigned this Aug 8, 2024
@Cruikshanks Cruikshanks force-pushed the update-existing-ret-ver-the-alan-take branch from a6193c0 to e3e11a1 Compare August 8, 2024 22:01
Base automatically changed from update-existing-return-versions to main August 9, 2024 13:18
@Cruikshanks
Copy link
Member Author

We went with solution 2 and made the change in the original PR. This one can now be closed.

@Cruikshanks Cruikshanks closed this Aug 9, 2024
@Cruikshanks Cruikshanks deleted the update-existing-ret-ver-the-alan-take branch August 9, 2024 14:31
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.

2 participants