- Notifications
You must be signed in to change notification settings - Fork928
feat(coderd/database): addtemplate_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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
feat(coderd/database): addtemplate_usage_stats
table and rollup query#12664
Uh oh!
There was an error while loading.Please reload this page.
Conversation
mafredri commentedMar 19, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
5a49791
toc9fe7c5
CompareThere 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!
Uh oh!
There was an error while loading.Please reload this page.
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.) |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
c9fe7c5
to46bc0f0
Compareb64c291
tob3bdea2
Comparedf37ae9
tocafcc7b
Compare8f207e3
to310f545
Comparefc0b87c
tocba0c08
Comparecba0c08
to8b96a59
Comparemafredri commentedMar 22, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
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.