Skip to content

Get latest delivery configuration when processing batch submissions - #2399

Open
DavidBiddle wants to merge 1 commit into
mainfrom
get-latest-delivery-configuration-when-processing-submissions
Open

DavidBiddle wants to merge 1 commit into
mainfrom
get-latest-delivery-configuration-when-processing-submissions

Conversation

@DavidBiddle

@DavidBiddle DavidBiddle commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: https://trello.com/c/P7bDQZTP/3248-get-submission-delivery-configuration-from-latest-live-version-of-the-form-in-forms-runner

Updates the batch submission processing logic to always fetch the latest delivery configurations from the delivery configurations endpoint in forms-admin, instead of checking the form document attached to the submission as we do currently.

Note: govuk-forms/forms-admin#3239 needs to be deployed before this can be merged

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 get-latest-delivery-configuration-when-processing-submissions branch from b1e6abf to e9da756 Compare October 9, 2026 13:56
@DavidBiddle
DavidBiddle marked this pull request as ready for review October 9, 2026 14:07
Comment thread app/lib/batch_submissions_selector.rb Outdated
@theseanything
theseanything requested a balanced review from Copilot October 9, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Batch selection introduces per-submission HTTP requests, and lookup failures can leave orphaned submissions.

2 open findings

🧠 Review effort: Balanced

Comment thread app/lib/batch_submissions_selector.rb Outdated
Comment thread app/services/form_submission_service.rb Outdated
Comment thread app/resources/api/delivery_configuration_resource.rb Outdated
Comment thread app/lib/batch_submissions_selector.rb Outdated
Comment thread app/services/form_submission_service.rb Outdated
@DavidBiddle
DavidBiddle force-pushed the get-latest-delivery-configuration-when-processing-submissions branch 2 times, most recently from 05ff058 to 9582d05 Compare October 13, 2026 16:02
@DavidBiddle
DavidBiddle requested a balanced review from Copilot October 13, 2026 16:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Comment thread app/lib/batch_submissions_selector.rb Outdated
Comment thread app/services/form_submission_service.rb Outdated
Comment thread app/lib/batch_submissions_selector.rb Outdated
Comment thread spec/services/form_submission_service_spec.rb Outdated
@DavidBiddle
DavidBiddle force-pushed the get-latest-delivery-configuration-when-processing-submissions branch 2 times, most recently from 35298c4 to 779d996 Compare October 14, 2026 08:23
@DavidBiddle
DavidBiddle marked this pull request as draft October 20, 2026 09:29
@DavidBiddle
DavidBiddle force-pushed the get-latest-delivery-configuration-when-processing-submissions branch from 779d996 to 55ff7e1 Compare October 20, 2026 09:31
@DavidBiddle

Copy link
Copy Markdown
Contributor Author

I've moved the immediate submission handling into #2435, so this PR will only cover the changes to batch submissions.

@DavidBiddle DavidBiddle changed the title Get latest delivery configuration when processing submissions Get latest delivery configuration when processing batch submissions Oct 20, 2026
@DavidBiddle
DavidBiddle force-pushed the get-latest-delivery-configuration-when-processing-submissions branch 3 times, most recently from 95d6c48 to 4b9a694 Compare October 23, 2026 13:30
@DavidBiddle
DavidBiddle marked this pull request as ready for review October 23, 2026 13:36
@DavidBiddle

Copy link
Copy Markdown
Contributor Author

I've now reworked this to get the list of forms with batch delivery enabled from forms-admin, instead of looking it up per-form. To do this I've added a new endpoint to forms-admin: govuk-forms/forms-admin#3239

@DavidBiddle
DavidBiddle force-pushed the get-latest-delivery-configuration-when-processing-submissions branch from 4b9a694 to b48f16b Compare October 29, 2026 16:01
@github-actions

Copy link
Copy Markdown
Contributor

🎉 A review copy of this PR has been deployed! It is made of up two components

  1. A review copy of forms-runner
  2. A production copy of forms-admin

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.

This branch has not been deployed

No deployments
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