Skip to content

Rename question step type to reflect the change in the forms-admin API#2027

Merged
stephencdaly merged 3 commits intomainfrom
rename-question-step-type
Apr 8, 2026
Merged

Rename question step type to reflect the change in the forms-admin API#2027
stephencdaly merged 3 commits intomainfrom
rename-question-step-type

Conversation

@stephencdaly
Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: https://trello.com/c/02H0xEqG

govuk-forms/forms-admin#2690 renames the step type returned for question steps from "question_page" to "question. These PRs can be merged in any order as the step type isn't currently consumed.

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?

Forms-admin has been updated to use "question" as the step type
instead of "question_page". We don't currently consume this in
forms-runner as there is only one step type, but update tests to
reflect this change.
This reflects the step type being renamed from "question_page" to
"question".
This method seemed to want to be specific that we were getting a step
that has a question type. There are currently only question type
steps, however, if the step was a different type we would still want
to know whether it had been completed.

Update the parameter name to just be `step`.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 8, 2026

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

@stephencdaly stephencdaly added this pull request to the merge queue Apr 8, 2026
Merged via the queue into main with commit 3a5972e Apr 8, 2026
4 checks passed
@stephencdaly stephencdaly deleted the rename-question-step-type branch April 8, 2026 11:11
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