-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export form feature summary as CSV #2561
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few suggestions! looking great 🥳
@@ -62,8 +62,52 @@ def export_services | |||
end | |||
end | |||
|
|||
def export_dev_form_summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a biggie but these 2 methods feel like could be just one that receives a couple arguments? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Generate a form summary on request for a given environment, outputs as a csv
This can then be used to extrapolate a lot of interesting starts like how many forms use a given component or enable a given feature.
In dev, I generated a report on 29 services in 2.6 seconds
The major expensive operation is that each form needs to have its metadata pulled from the api as a single request for the latest version, in live envs this is likely to be 10x slower, but should still be able to generate a report in under 1 minute.
Report generation is only accessible as a logged in administrator via the admin UI