- Notifications
You must be signed in to change notification settings - Fork1k
Commit4543b21
feat(coderd/database): track user status changes over time (#16019)
RE:#15740,#15297In order to add a graph to the coder frontend to show user status overtime as an indicator of license usage, this PR adds the following:* a new `api.insightsUserStatusCountsOverTime` endpoint to the API* which calls a new `GetUserStatusCountsOverTime` query from postgres* which relies on two new tables `user_status_changes` and`user_deleted`* which are populated by a new trigger and function that tracks updatesto the users tableThe chart itself will be added in a subsequent PR---------Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>1 parent73d8dde commit4543b21
File tree
25 files changed
+1456
-3
lines changed- coderd
- apidoc
- database
- dbauthz
- dbmem
- dbmetrics
- dbmock
- migrations
- testdata/fixtures
- queries
- codersdk
- docs/reference/api
- site/src/api
25 files changed
+1456
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
521 | 521 |
| |
522 | 522 |
| |
523 | 523 |
| |
| 524 | + | |
524 | 525 |
| |
525 | 526 |
| |
526 | 527 |
| |
| |||
540 | 541 |
| |
541 | 542 |
| |
542 | 543 |
| |
543 |
| - | |
544 |
| - | |
545 | 544 |
| |
546 | 545 |
| |
547 | 546 |
| |
| |||
559 | 558 |
| |
560 | 559 |
| |
561 | 560 |
| |
562 |
| - | |
| 561 | + | |
563 | 562 |
| |
564 | 563 |
| |
565 | 564 |
| |
|
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1281 | 1281 |
| |
1282 | 1282 |
| |
1283 | 1283 |
| |
| 1284 | + | |
1284 | 1285 |
| |
1285 | 1286 |
| |
1286 | 1287 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2421 | 2421 |
| |
2422 | 2422 |
| |
2423 | 2423 |
| |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
2424 | 2431 |
| |
2425 | 2432 |
| |
2426 | 2433 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1708 | 1708 |
| |
1709 | 1709 |
| |
1710 | 1710 |
| |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
1711 | 1717 |
| |
1712 | 1718 |
| |
1713 | 1719 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| 91 | + | |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
| |||
256 | 257 |
| |
257 | 258 |
| |
258 | 259 |
| |
| 260 | + | |
259 | 261 |
| |
260 | 262 |
| |
261 | 263 |
| |
| |||
5669 | 5671 |
| |
5670 | 5672 |
| |
5671 | 5673 |
| |
| 5674 | + | |
| 5675 | + | |
| 5676 | + | |
| 5677 | + | |
| 5678 | + | |
| 5679 | + | |
| 5680 | + | |
| 5681 | + | |
| 5682 | + | |
| 5683 | + | |
| 5684 | + | |
| 5685 | + | |
| 5686 | + | |
| 5687 | + | |
| 5688 | + | |
| 5689 | + | |
| 5690 | + | |
| 5691 | + | |
| 5692 | + | |
| 5693 | + | |
| 5694 | + | |
| 5695 | + | |
| 5696 | + | |
| 5697 | + | |
| 5698 | + | |
| 5699 | + | |
| 5700 | + | |
| 5701 | + | |
| 5702 | + | |
| 5703 | + | |
| 5704 | + | |
| 5705 | + | |
| 5706 | + | |
| 5707 | + | |
| 5708 | + | |
| 5709 | + | |
5672 | 5710 |
| |
5673 | 5711 |
| |
5674 | 5712 |
| |
| |||
8021 | 8059 |
| |
8022 | 8060 |
| |
8023 | 8061 |
| |
| 8062 | + | |
| 8063 | + | |
| 8064 | + | |
| 8065 | + | |
| 8066 | + | |
| 8067 | + | |
8024 | 8068 |
| |
8025 | 8069 |
| |
8026 | 8070 |
| |
| |||
9062 | 9106 |
| |
9063 | 9107 |
| |
9064 | 9108 |
| |
| 9109 | + | |
| 9110 | + | |
| 9111 | + | |
| 9112 | + | |
| 9113 | + | |
9065 | 9114 |
| |
9066 | 9115 |
| |
9067 | 9116 |
| |
9068 | 9117 |
| |
9069 | 9118 |
| |
9070 | 9119 |
| |
| 9120 | + | |
9071 | 9121 |
| |
9072 | 9122 |
| |
9073 | 9123 |
| |
| |||
9868 | 9918 |
| |
9869 | 9919 |
| |
9870 | 9920 |
| |
| 9921 | + | |
| 9922 | + | |
| 9923 | + | |
| 9924 | + | |
| 9925 | + | |
| 9926 | + | |
9871 | 9927 |
| |
9872 | 9928 |
| |
9873 | 9929 |
| |
|
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
0 commit comments
Comments
(0)