Skip to content

Make changes live save and return text - #3279

Closed
SamJamCul wants to merge 2 commits into
mainfrom
make-changes-live-save-and-return-text
Closed

SamJamCul wants to merge 2 commits into
mainfrom
make-changes-live-save-and-return-text

Conversation

@SamJamCul

@SamJamCul SamJamCul commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: https://trello.com/c/wmQXsibH/3337-tell-form-creators-about-archiving-or-making-changes-to-forms-with-save-and-return-enabled

These changes affect live forms with save and return enabled. If you try to make changes or archive a form, the content will vary depending on whether the form's live version has save and return turned on.

Archiving a form with save and return enabled

image

Make changes to a live form with save and return enabled

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?

Copilot AI balanced review requested due to automatic review settings November 4, 2026 10:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

A regression test is needed to verify that enabling save and return in a draft does not trigger the saved-progress warning until the draft is published.

1 open issue
What changed in this PR

Adds guidance for form creators about how archiving or publishing changes affects people who have saved their progress.

Changes:

  • Checks the published form’s save-and-return setting to select the appropriate warning.
  • Adds warnings explaining that saved versions can still receive submissions for up to 30 days.
  • Adds model and view coverage for the new behavior.
File Description
spec/​views/​forms/​make_live/​make_your_changes_live.html.erb_spec.rb Tests publishing warnings for saved progress.
spec/​views/​forms/​archive_form/​archive.html.erb_spec.rb Tests archive guidance for saved progress.
spec/​models/​form_spec.rb Tests the live save-and-return predicate.
config/​locales/​en.yml Adds warning text and fixes a paragraph closing tag.
app/​views/​forms/​make_live/​make_your_changes_live.html.erb Selects publishing warnings based on the live setting.
app/​views/​forms/​archive_form/​archive.html.erb Selects archive guidance based on the live setting.
app/​models/​form.rb Adds a predicate reading the published save-and-return setting.

Review effort: Balanced

Comment thread app/models/form.rb Resolved
@SamJamCul
SamJamCul force-pushed the make-changes-live-save-and-return-text branch from 623a4d0 to a1cdab0 Compare November 4, 2026 10:53
Copilot AI balanced review requested due to automatic review settings November 4, 2026 10:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The unordered document lookup can use an older live version’s save-and-return setting, causing incorrect confirmation warnings when settings differ across versions.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread app/models/form.rb Resolved
@SamJamCul
SamJamCul force-pushed the make-changes-live-save-and-return-text branch from a1cdab0 to 5b4b268 Compare November 4, 2026 11:05
Copilot AI balanced review requested due to automatic review settings November 4, 2026 11:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the save-and-return warning updates.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@SamJamCul
SamJamCul force-pushed the make-changes-live-save-and-return-text branch from 5b4b268 to feca253 Compare November 4, 2026 11:45
Copilot AI balanced review requested due to automatic review settings November 4, 2026 11:45
SamJamCul and others added 2 commits November 4, 2026 11:47
When a live form has save and return enabled, people who have saved
their progress keep filling in the version they started, so form
creators may get submissions from the previous version for up to 30
days. Show this on the make your changes live page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a live form has save and return enabled, people who have saved
their progress can still finish and submit it after the form is
archived, so form creators may get submissions for up to 30 days
afterwards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SamJamCul
SamJamCul force-pushed the make-changes-live-save-and-return-text branch from feca253 to b6272f5 Compare November 4, 2026 11:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

When save and return is enabled, the English-only publishing flow omits the warning that saved users can submit the previous version for up to 30 days.

1 open issue

Review effort: Balanced

Comment on lines +16 to +17
<% if current_form.live_save_and_return_enabled? %>
<%= t("make_changes_live.warning_with_save_and_return_html") %>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 11:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the save-and-return publishing and archiving guidance changes.

1 open issue

Review effort: Balanced

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown

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

@SamJamCul SamJamCul closed this Nov 6, 2026
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.

3 participants