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

Refactor purposes page to use purpose ids as values #1025

Merged
merged 11 commits into from
May 17, 2024

Conversation

robertparkinson
Copy link
Collaborator

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

As part of our work to get the requirements for returns set up we need to know which of the purposes the user has selected in the manual journey so that we can then get the information later at the check your answers page.

This PR changes the logic to store the ID rather than the string which describes the purpose. that way we can look it up again.

@robertparkinson robertparkinson marked this pull request as ready for review May 16, 2024 13:42
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had 1 NIT about perhaps using map() instead of the forEach().

My key question though is about replacing stubbing with injecting real records in the tests. I'm not sure it is necessary but happy to be proved wrong!

@Cruikshanks Cruikshanks added the housekeeping Refactoring, tidying up or other work which supports the project label May 16, 2024
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertparkinson robertparkinson merged commit a660acd into main May 17, 2024
6 checks passed
@robertparkinson robertparkinson deleted the return-requirements-manual-purposes branch May 17, 2024 09:20
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.

2 participants