Skip to content

Comments

Update form when questions change#2557

Merged
stephencdaly merged 2 commits intomainfrom
update-form-when-questions-change
Feb 17, 2026
Merged

Update form when questions change#2557
stephencdaly merged 2 commits intomainfrom
update-form-when-questions-change

Conversation

@SamJamCul
Copy link
Contributor

@SamJamCul SamJamCul commented Feb 17, 2026

What problem does this pull request solve?

https://trello.com/c/fMG08XG5/2799-add-job-to-send-an-email-with-a-csv-containing-the-previous-days-submissions

https://trello.com/c/HJEFC3o8/3125-live-forms-can-have-conditions-and-pages-deleted-without-changing-it-to-livewithdraft

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?

SamJamCul and others added 2 commits February 17, 2026 15:55
We want to ensure that when a form's questions are changed, we always
set the updated_at for that form. This will facilitate us using the
updated_at in forms-runner to identify whether a form has changed for
different submissions.

Co-authored-by: Stephen Daly <[email protected]>
Whenever a change is made to any of the pages or conditions within a
form, the save_question_changes! method should always be called on that
form.

Co-authored-by: Stephen Daly <[email protected]>
@sonarqubecloud
Copy link

@github-actions
Copy link

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2557.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.

@stephencdaly stephencdaly added this pull request to the merge queue Feb 17, 2026
Merged via the queue into main with commit afa4874 Feb 17, 2026
8 checks passed
@stephencdaly stephencdaly deleted the update-form-when-questions-change branch February 17, 2026 16:16
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.

2 participants