Commit 8b7df6f
feat(explore): Add 1 day interval option for durations >= 14 days (#112919)
Add a "1 day" bucket option to the interval dropdown in Explore and
Dashboards for time ranges of 14 days or more.
The interval rebalancing in #112562 removed the `1d` option. This was
flagged by user feedback — for longer time ranges, daily bucketing is a
natural and useful granularity. Rather than re-tuning the interval
ladders, this appends `1d` as an extra option outside the ladder system.
The default interval for each strategy (smallest for Explore,
second-biggest for Dashboards) is computed before the extra is appended,
so defaults are unchanged.
Refs DAIN-1511
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 43ccf50 commit 8b7df6f
File tree
2 files changed
+23
-13
lines changed- static/app/utils
2 files changed
+23
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | 68 | | |
73 | | - | |
74 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
75 | 72 | | |
76 | | - | |
77 | | - | |
| 73 | + | |
| 74 | + | |
78 | 75 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
85 | 91 | | |
86 | | - | |
87 | | - | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
142 | 151 | | |
143 | 152 | | |
144 | 153 | | |
| |||
0 commit comments