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

Fix create notes from RTN FORMATS desc for versions #944

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

Cruikshanks
Copy link
Member

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

As part of migrating the return requirement functionality from NALD to WRLS we've had to expand how the existing legacy code is importing the current from NALD.

One of the changes we made was to capture the descriptions from each return version's return formats (return requirements) and combine them as the 'note'. We don't intend to use description at the return requirement level, but this is a way of still being able to capture the info and make them visible to users should they need them.

However, we hadn't catered for the fact that the files we're importing state 'null' for empty fields. This means 'null' gets imported rather than the field being left as NULL. This messed up the notes because where there was no return format description, 'null' was being used, resulting in notes like 'null, null'.

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

As part of migrating the return requirement functionality from NALD to WRLS we've had to expand how the existing legacy code is importing the current from NALD.

One of the changes we made was to capture the descriptions from each return version's return formats (return requirements) and combine them as the note. We don't intend to use `description` at the return requirement level but this is a way of still being able to capture the info and make them visible to users should they need them.

However, we hadn't catered for the fact the files we're importing from state `'null'` for empty fields. This means `'null'` gets imported rather than the field being left as `NULL`. This messed up the notes because where there was no return format description `'null'` was being used, resulting in notes like 'null, null'.
@Cruikshanks Cruikshanks added the bug Something isn't working label Jun 6, 2024
@Cruikshanks Cruikshanks self-assigned this Jun 6, 2024
@Cruikshanks Cruikshanks marked this pull request as ready for review June 6, 2024 22:13
@Cruikshanks Cruikshanks merged commit 73f3f7b into main Jun 6, 2024
4 checks passed
@Cruikshanks Cruikshanks deleted the fix-return-version-note-import branch June 6, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant