File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
web-admin/src/features/dashboards/query-mappers Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
- import { createInExpression } from "@rilldata/web-common/features/dashboards/stores/filter-utils" ;
2
1
import type { ExploreState } from "@rilldata/web-common/features/dashboards/stores/explore-state" ;
2
+ import { createInExpression } from "@rilldata/web-common/features/dashboards/stores/filter-utils" ;
3
3
import { getTimeControlState } from "@rilldata/web-common/features/dashboards/time-controls/time-control-store" ;
4
4
import { PreviousCompleteRangeMap } from "@rilldata/web-common/features/dashboards/time-controls/time-range-mappers" ;
5
5
import { convertPartialExploreStateToUrlParams } from "@rilldata/web-common/features/dashboards/url-state/convert-partial-explore-state-to-url-params" ;
@@ -115,6 +115,11 @@ export function getSelectedTimeRange(
115
115
new Date ( timeRangeSummary . min ) ,
116
116
new Date ( executionTime ) ,
117
117
) ;
118
+ // Convert the range to a custom one with resolved start and end.
119
+ // This retains the resolved range with `executionTime` incorporated into the range.
120
+ // TODO: Once we have rill-time do `<syntax> as of <executionTime>` as time range.
121
+ // Note we need to have the new drop down out of feature flag as well.
122
+ selectedTimeRange . name = TimeRangePreset . CUSTOM ;
118
123
} else {
119
124
return undefined ;
120
125
}
You can’t perform that action at this time.
0 commit comments