Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Add separate endpoint for add another answer report#723

Merged
stephencdaly merged 1 commit intomainfrom
add-separate-endpoint-for-add-another-answer-report
Apr 3, 2025
Merged

Add separate endpoint for add another answer report#723
stephencdaly merged 1 commit intomainfrom
add-separate-endpoint-for-add-another-answer-report

Conversation

@stephencdaly
Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card:

The report to list forms with add another questions is shown on a different page to the main feature usage report. The feature report in forms-admin now sources its data from the /api/v2/form_documents endpoint rather than /api/v1/reports/features.

So that we can remove /api/v1/reports/features, separate the report to list forms with add another answer questions into its own endpoint. We can remove /features once forms-admin is using this new endpoint.

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?
  • Has all relevant documentation been updated?

The report to list forms with add another questions is shown on a
different page to the main feature usage report. The feature report
in forms-admin now sources its data from the `/api/v2/form_documents`
endpoint rather than `/api/v1/reports/features`.

So that we can remove `/api/v1/reports/features`, separate the report
to list forms with add another answer questions into its own endpoint.
We can remove `/features` once forms-admin is using this new endpoint.
@stephencdaly stephencdaly force-pushed the add-separate-endpoint-for-add-another-answer-report branch from 01dbe52 to f2378c5 Compare April 2, 2025 15:48
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 2, 2025

Copy link
Copy Markdown
Contributor

@DavidBiddle DavidBiddle left a comment

Choose a reason for hiding this comment

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

Code looks good and tested succesfully on my local machine with the corresponding forms-admin branch 🎉

@stephencdaly stephencdaly merged commit aa5aa58 into main Apr 3, 2025
4 checks passed
@stephencdaly stephencdaly deleted the add-separate-endpoint-for-add-another-answer-report branch April 3, 2025 10:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants