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

Remove feature usage report endpoint#726

Merged
stephencdaly merged 2 commits intomainfrom
remove-features-report-endpoint
Apr 4, 2025
Merged

Remove feature usage report endpoint#726
stephencdaly merged 2 commits intomainfrom
remove-features-report-endpoint

Conversation

@stephencdaly
Copy link
Copy Markdown
Contributor

What problem does this pull request solve?

Trello card: https://trello.com/c/SgDCKXcY/145-improve-our-feature-reports

This report is now constructed in forms-admin using data retrieved from api/v2/form_documents and so this endpoint is no longer consumed.

Rename the FeatureUsageService to AddAnotherAnswerUsage service as this is the only thing it is now used for.

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?

@stephencdaly stephencdaly force-pushed the remove-features-report-endpoint branch from 7c340e4 to c784463 Compare April 4, 2025 11:44
lfdebrux
lfdebrux previously approved these changes Apr 4, 2025
Copy link
Copy Markdown
Contributor

@lfdebrux lfdebrux left a comment

Choose a reason for hiding this comment

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

Yay for deleting things!

@lfdebrux
Copy link
Copy Markdown
Contributor

lfdebrux commented Apr 4, 2025

@stephencdaly Can we remove the endpoint from config/routes.rb?

This report is now constructed in forms-admin using data retrieved
from `api/v2/form_documents` and so this endpoint is no longer
consumed.
Rename the `FeatureUsageService` to `AddAnotherAnswerUsage` service as
this is the only thing it is now used for.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 4, 2025

@stephencdaly
Copy link
Copy Markdown
Contributor Author

@stephencdaly Can we remove the endpoint from config/routes.rb?

Ah good spot, thanks! Have removed.

@stephencdaly stephencdaly merged commit fada3ae into main Apr 4, 2025
4 checks passed
@stephencdaly stephencdaly deleted the remove-features-report-endpoint branch April 4, 2025 13:28
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