-
Notifications
You must be signed in to change notification settings - Fork 881
feat(coderd/database): add template_usage_stats
table and rollup query
#12664
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
feat(coderd/database): add template_usage_stats
table and rollup query
#12664
Conversation
5a49791
to
c9fe7c5
Compare
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.
I don't have any blocking comments here, except for the potential of a golden-style test for this query. Will approve once CI is happy 👍 Nice work!
Thanks for the review. The golden file verifications will come via existing tests in: #12673 (Although I'm planning on moving that PR around a bit in this stack.) |
c9fe7c5
to
46bc0f0
Compare
b64c291
to
b3bdea2
Compare
df37ae9
to
cafcc7b
Compare
8f207e3
to
310f545
Compare
fc0b87c
to
cba0c08
Compare
cba0c08
to
8b96a59
Compare
This PR adds a new table,
template_usage_stats
containing aggregate usage data from users and what features they've used.The rollup is performed by the
UpsertTemplateUsageStats
query and it fetches data from theworkspace_agent_stats
andworkspace_app_stats
tables.