Commit 7bed5fe
committed
fix(metrics): stabilize query cache and add weekly warm cron
* Use fixed UTC date bounds for metrics intervals so cache keys stay stable across the week
* Expose created_at on the API
* Align the dashboard with the email window, and warm the cache after the Saturday metrics email.
Closes #1940
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>
fix: change seeds to include older timestamp
Signed-off-by: Alan Peixinho <alan.peixinho@profusion.mobi>1 parent d5da7c4 commit 7bed5fe
21 files changed
Lines changed: 342 additions & 161 deletions
File tree
- backend
- kernelCI_app
- constants
- management/commands
- queries
- tests
- factories
- integrationTests
- unitTests
- commands
- queries
- typeModels
- kernelCI
- dashboard/src
- api
- components/InputTime
- locales/messages
- pages/Metrics
- routes/_main/metrics
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
230 | 234 | | |
231 | 235 | | |
232 | 236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
847 | 848 | | |
848 | 849 | | |
849 | 850 | | |
850 | | - | |
851 | | - | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
852 | 859 | | |
853 | 860 | | |
854 | 861 | | |
| |||
0 commit comments