Skip to content

Add tasks for making individual languages live#2810

Open
DavidBiddle wants to merge 2 commits into
mainfrom
add-links-to-make-language-live-pages
Open

Add tasks for making individual languages live#2810
DavidBiddle wants to merge 2 commits into
mainfrom
add-links-to-make-language-live-pages

Conversation

@DavidBiddle
Copy link
Copy Markdown
Contributor

@DavidBiddle DavidBiddle commented May 27, 2026

What problem does this pull request solve?

Trello card: https://trello.com/c/nE8FUqW4/2892-separate-make-your-english-welsh-form-live-task-on-task-page

Adds new tasks to the task list, which will appear when the form:

  • has any Welsh content, and
  • does not have a live Welsh version

These replace the existing make live task for Welsh forms.

Screenshots

A form with Welsh content and unpublished English changes:
image

A form with Welsh content and a live English version:
image

A draft form with no Welsh content:
image

A live form with a live Welsh version:
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?

@DavidBiddle DavidBiddle force-pushed the add-links-to-make-language-live-pages branch 4 times, most recently from 37f69d5 to 2b96e45 Compare May 27, 2026 16:06
@DavidBiddle DavidBiddle marked this pull request as ready for review May 28, 2026 12:08
@DavidBiddle DavidBiddle force-pushed the add-links-to-make-language-live-pages branch from 9a93465 to 16286e4 Compare May 28, 2026 13:20
We need to prevent Welsh forms being made live if there are changes to the draft since the form was made live. If we don't, it's possible for a user to:

- make an English version of the form live
- make a change to that English version (e.g. adding or deleting a question)
- complete the Welsh translations for the form
- make the Welsh version live without making the English changes live

In this case the different language versions would be out of sync, as the English and Welsh form documents would be from before and after the change respectively. This would lead to unexpected behaviour for form fillers when switching languages.
@DavidBiddle DavidBiddle force-pushed the add-links-to-make-language-live-pages branch from 16286e4 to b219ae9 Compare May 28, 2026 14:03
@github-actions
Copy link
Copy Markdown

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

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.

1 participant