Skip to content

Add user research contact preference#1892

Merged
alice-carr merged 6 commits into
mainfrom
add-user-research-contact-preference
Sep 30, 2025
Merged

Add user research contact preference#1892
alice-carr merged 6 commits into
mainfrom
add-user-research-contact-preference

Conversation

@thomasiles
Copy link
Copy Markdown
Contributor

@thomasiles thomasiles commented Apr 11, 2025

Ask new users for consent to be contacted about user research

Trello cards:
https://trello.com/c/8R5O8PTf/162-add-sign-up-screen-to-collect-user-research-interest
https://trello.com/c/ZBHqh34G/161-add-report-for-users-who-have-agreed-to-be-contacted-for-user-research
https://trello.com/c/6Vsps6ev/2380-design-and-build-the-new-opt-in-to-be-invited-to-take-part-in-ur-page-for-the-govuk-forms-signup-journey

This work was done during firebreak to add a report for users who have agreed to be contacted and a new form at the end of the signup journey which asks them.

Further work needed:

  • update content for consent (it's still being worked on) (done)
  • add tests for the new controller and a feature test (done)
  • think about deployment - we don't want to ask all users for their consent, only new ones (we've decided to ask all users for consent, not just new users)

See this ticket for the final parts of implementation.

image
image

Things to consider when reviewing

  • Ensure that you consider the wider context.
  • Does it work when run on your machine?
  • Is it clear what the code is doing?
  • Do the commit messages explain why the changes were made?
  • Are there all the unit tests needed?
  • Do the end to end tests need updating before these changes will pass?
  • Has all relevant documentation been updated?

@sonarqubecloud
Copy link
Copy Markdown

@thomasiles thomasiles force-pushed the add-user-research-contact-preference branch from e5cfc92 to 8d3bbab Compare July 28, 2025 08:24
@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch 6 times, most recently from 83ce173 to 4ce5de7 Compare September 2, 2025 08:29
@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch 2 times, most recently from 3cbecc2 to 25e7979 Compare September 2, 2025 16:12
@alice-carr alice-carr changed the title DO NOT MERGE: Add user research contact preference Add user research contact preference Sep 2, 2025
@alice-carr alice-carr marked this pull request as ready for review September 2, 2025 16:24
@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch 3 times, most recently from 4471f0e to 0543f17 Compare September 8, 2025 13:27
@alice-carr alice-carr changed the title Add user research contact preference WIP: Add user research contact preference Sep 9, 2025
@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch 5 times, most recently from 5ae990f to 144e63a Compare September 9, 2025 14:40
@alice-carr alice-carr changed the title WIP: Add user research contact preference Add user research contact preference Sep 9, 2025
Comment thread config/locales/en.yml Outdated
@hannahkc
Copy link
Copy Markdown
Contributor

Made one small content suggestion. Otherwise, all the content looks good.

@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch 2 times, most recently from 91e5e2b to f984889 Compare September 15, 2025 15:57
DavidBiddle
DavidBiddle previously approved these changes Sep 16, 2025
@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch 2 times, most recently from 9c11cf0 to 6c8b364 Compare September 29, 2025 08:47
@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch 2 times, most recently from 850346c to 1d15d09 Compare September 29, 2025 10:00
@thomasiles thomasiles self-assigned this Sep 29, 2025
@thomasiles
Copy link
Copy Markdown
Contributor Author

This looks good to me, I can't add a review because I opened the PR.

@thomasiles thomasiles removed their assignment Sep 29, 2025
Copy link
Copy Markdown
Contributor

@DavidBiddle DavidBiddle left a comment

Choose a reason for hiding this comment

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

Code looks good and works for me in review 🎉

thomasiles and others added 6 commits September 30, 2025 07:28
Add a new report which lists all users who have agreed to be contacted
about user research.

The list is ordered by date of sign up.
Add a new page and input object for user research contact preference.
Redirect any user who does not have contact_for_research set to the page
to set it.
…search contact preference

This commit adds the updated content for the contact for research page, as well as addidng tests for the contact for research controller

It also adds a feature test to test the functionality of add a user research contact preference
… all users to "to_be_asked"

- Adds a db migration and updated schema/seeds to default all users to "to_be_asked"
- Adds timestamp to record what time the user opted into user research
- sorts the users in the report  that have consented by time of opting in to make it easier to keep track of users
- updates the tests to reflect the new changes
@alice-carr alice-carr force-pushed the add-user-research-contact-preference branch from 1d15d09 to 6be8a49 Compare September 30, 2025 06:28
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-1892.admin.review.forms.service.gov.uk/

It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready
after 5 minutes, there may be something wrong with the ECS task. You will need to go to the integration AWS account
to debug, or otherwise ask an infrastructure person.

For the sign in details and more information, see the review apps wiki page.

@alice-carr alice-carr merged commit bb58045 into main Sep 30, 2025
6 checks passed
@alice-carr alice-carr deleted the add-user-research-contact-preference branch September 30, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants