df34858c3c
chore(coderd): extract fileszip to package archive for reuse ( #15229 )
...
Related to https://github.com/coder/coder/issues/15087
As part of sniffing the workspace tags from an uploaded file, we need to
be able to handle both zip and tar files. Extracting the functions to
a separate `archive` package will be helpful here.
2024-10-25 15:14:39 +01:00
a0fce363cd
feat(coderd): add times_used
to coder_app
s in insights API ( #13292 )
...
For now, only applied to `coder_app`s, same logic can be implemented for
VS Code, SSH, etc.
Part of #13099
2024-05-16 16:53:01 +03:00
ba1eaceda4
feat(coderd): add sftp to insights apps ( #12675 )
2024-03-27 14:09:29 +02:00
7e183db199
test(coderd): fix todo for increased accuracy in insights test ( #12727 )
...
This PR updates the tests in `insights_test.go` to enable commented-out scenarios. This behavior was fixed by previous PRs in this stack. Note that the updated golden files are correct since they are "second template only" meaning that the newly introduced data is considered as expected. In other golden files there is no change since "only count once" is applied.
2024-03-25 17:55:53 +02:00
2332d8197a
feat(coderd/database): use template_usage_stats
in GetUserActivityInsights
query ( #12672 )
...
This PR updates the `GetUserActivityInsights` query to use rolled up `template_usage_stats` instead of raw agent and app stats.
2024-03-25 16:16:41 +02:00
35d08434a9
feat(coderd/database): use template_usage_stats
in GetTemplateInsights
query ( #12666 )
...
This PR updates the `GetTemplateInsights` query to use rolled up `template_usage_stats` instead of raw agent and app stats.
2024-03-25 15:33:31 +02:00
b1ecc53033
chore(coderd): improve tests for tar<->zip conversion ( #12477 )
...
* improve tests for tar<->zip conversion
* set mode and modtime correctly when converting from zip to tar (#12476 )
2024-03-11 13:29:57 +00:00
f62f45a303
feat!: add sections
parameter to template insights ( #10010 )
2023-10-03 15:44:50 +02:00
4c3b579f58
feat: expose insights into user activity ( #9807 )
2023-09-26 18:42:16 +02:00
b0e3daa120
feat(coderd): support weekly aggregated insights ( #9684 )
2023-09-19 13:06:19 +02:00
af939d1e94
fix(coderd): optimize template app insights query for speed and decrease intervals ( #9302 )
2023-08-24 14:34:38 +00:00
04d5e3f54f
fix(coderd): rewrite template insights query for speed and fix intervals ( #9300 )
2023-08-24 14:38:32 +03:00
6b69abfec7
fix(coderd): use stable sorting for insights and improve test coverage ( #9250 )
...
Fixes #9213
2023-08-24 13:36:40 +03:00