Skip to content

Comments

Add feature report for Welsh forms#2537

Open
alice-carr wants to merge 1 commit intomainfrom
add-feature-report-for-welsh-forms
Open

Add feature report for Welsh forms#2537
alice-carr wants to merge 1 commit intomainfrom
add-feature-report-for-welsh-forms

Conversation

@alice-carr
Copy link
Contributor

@alice-carr alice-carr commented Feb 3, 2026

What problem does this pull request solve?

This PR adds a feature report to show how many live or draft forms there are that have a welsh translation

Trello card: https://trello.com/c/garSsQ76/2805-add-feature-report-for-welsh-forms

Screenshot 2026-02-03 at 16 12 43 Screenshot 2026-02-03 at 16 13 05

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?

@alice-carr alice-carr force-pushed the add-feature-report-for-welsh-forms branch 4 times, most recently from c4f3411 to c61036e Compare February 16, 2026 14:42
Add a report to the feature report that shows how many forms have a welsh translation, using the welsh_completed bool from the form.
This commit also adds tests for this new report
@alice-carr alice-carr force-pushed the add-feature-report-for-welsh-forms branch from c61036e to 26b320d Compare February 16, 2026 14:51
@sonarqubecloud
Copy link

@github-actions
Copy link

🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2537.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 changed the title wip: Add feature report for Welsh forms Add feature report for Welsh forms Feb 16, 2026
@alice-carr alice-carr marked this pull request as ready for review February 16, 2026 15:31
# FormDocumentsService adds in the welsh_completed details as part of the database query
form.live_form_document.as_json
.merge({
"welsh_completed" => form.welsh_completed ? true : false,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I'd expect this to be equivalent to:

Suggested change
"welsh_completed" => form.welsh_completed ? true : false,
"welsh_completed" => form.welsh_completed,

since form.welsh_completed is already boolean

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