Add rake task to retrieve live and draft for docs#2940
Merged
Conversation
SamJamCul
force-pushed
the
add-task-to-retrieve-form-document
branch
from
July 16, 2026 11:19
87f8ef6 to
123bbce
Compare
stephencdaly
previously approved these changes
Jul 16, 2026
stephencdaly
left a comment
Contributor
There was a problem hiding this comment.
Added a suggestion but nothing to stop this going in as it is to use for the support task
SamJamCul
force-pushed
the
add-task-to-retrieve-form-document
branch
from
July 16, 2026 12:11
123bbce to
2521a9c
Compare
SamJamCul
commented
Jul 16, 2026
stephencdaly
left a comment
Contributor
There was a problem hiding this comment.
We can simplify by using the find_by ActiveRecord query method
SamJamCul
force-pushed
the
add-task-to-retrieve-form-document
branch
2 times, most recently
from
July 16, 2026 13:18
0c8a9d9 to
e4056c5
Compare
SamJamCul
force-pushed
the
add-task-to-retrieve-form-document
branch
from
July 16, 2026 13:41
e4056c5 to
7b27fc4
Compare
stephencdaly
previously approved these changes
Jul 16, 2026
SamJamCul
force-pushed
the
add-task-to-retrieve-form-document
branch
from
July 16, 2026 14:00
7b27fc4 to
25dd8e3
Compare
The task retrieves form documents for a given form based on the provided form_id, tag and language. One form document is retrieved at a time so that the output is always limited to a single JSON form document. If no language is provided, it defaults to using 'en'.
SamJamCul
force-pushed
the
add-task-to-retrieve-form-document
branch
from
July 16, 2026 14:10
25dd8e3 to
90c5b26
Compare
|
🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2940.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 For the sign in details and more information, see the review apps wiki page. |
stephencdaly
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this pull request solve?
As part of investigating issues with a draft form document, this task will make it easier to compare the form's current state in the db. I've kept this as a task under the
formsnamespace as it's easy to work out a form's ID, and get the form documents for that form using it.Things to consider when reviewing