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

Add created_by to return versions and link models #1126

Merged
merged 8 commits into from
Jun 20, 2024

Conversation

Cruikshanks
Copy link
Member

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

Part of the work to replace NALD for handling return requirements

When we take control of the setup of return requirements, we'll be persisting them in the same tables that they are currently imported into.

One omission is that there is no means to identify who created the return version. Admittedly, there is nothing in NALD to indicate this, so there is nothing to import. But we intend to capture this information when we start persisting the records.

We've added the field to the table. This change makes the field available in the model, and links the return version and user models together using it.

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

> Part of the work to replace NALD for handling return requirements

When we take control of the setup of return requirements, we'll be persisting them in the same tables that they are currently imported into.

One omission though, is that there is no means to identify who created the return version. Admittedly there is nothing in NALD to indicate this hence nothing to import. But we intend to capture this information when we start persisting the records.

We've [added the field to the table](DEFRA/water-abstraction-service#2567). This change makes the field available in the model, and links the return version and user models together using it.
@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label Jun 20, 2024
@Cruikshanks Cruikshanks self-assigned this Jun 20, 2024
Because we are editing the view rather than creating an alter migration (something we do until a migration is shipped) folks will need to perform an `npm run rollback` before then running `npm run migrate` in this repo.
@Cruikshanks Cruikshanks marked this pull request as ready for review June 20, 2024 07:58
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 5b04b07 into main Jun 20, 2024
6 checks passed
@Cruikshanks Cruikshanks deleted the update-return-versions-with-created-by branch June 20, 2024 12:28
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