You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runtime/parser/schema/project.schema.yaml
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2302,12 +2302,18 @@ definitions:
2302
2302
description: Refers to the default time range shown when a user initially loads the dashboard. The value must be either a valid [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations) (for example, PT12H for 12 hours, P1M for 1 month, or P26W for 26 weeks) or one of the [Rill ISO 8601 extensions](https://docs.rilldata.com/reference/rill-iso-extensions#extensions)
2303
2303
type: string
2304
2304
comparison_mode:
2305
-
description: 'Controls how to compare current data with historical or categorical baselines. Options: `none` (no comparison), `time` (compares with past based on default_time_range), `dimension` (compares based on comparison_dimension values)'
2305
+
description: 'Controls how to compare current data. Options: `none`, `time` (alias for `rill-PP`), `dimension`, or a specific comparison offset: `rill-PP` (previous period), `rill-PD` (previous day), `rill-PW` (previous week), `rill-PM` (previous month), `rill-PQ` (previous quarter), `rill-PY` (previous year)'
2306
2306
type: string
2307
2307
enum:
2308
2308
- none
2309
2309
- time
2310
2310
- dimension
2311
+
- rill-PP
2312
+
- rill-PD
2313
+
- rill-PW
2314
+
- rill-PM
2315
+
- rill-PQ
2316
+
- rill-PY
2311
2317
comparison_dimension:
2312
2318
description: 'for dimension mode, specify the comparison dimension by name'
2313
2319
type: string
@@ -2519,12 +2525,18 @@ definitions:
2519
2525
description: Refers to the default time range shown when a user initially loads the dashboard. The value must be either a valid [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations) (for example, PT12H for 12 hours, P1M for 1 month, or P26W for 26 weeks) or one of the [Rill ISO 8601 extensions](https://docs.rilldata.com/reference/rill-iso-extensions#extensions)
2520
2526
type: string
2521
2527
comparison_mode:
2522
-
description: 'Controls how to compare current data with historical or categorical baselines. Options: `none` (no comparison), `time` (compares with past based on default_time_range), `dimension` (compares based on comparison_dimension values)'
2528
+
description: 'Controls how to compare current data. Options: `none`, `time` (alias for `rill-PP`), `dimension`, or a specific comparison offset: `rill-PP` (previous period), `rill-PD` (previous day), `rill-PW` (previous week), `rill-PM` (previous month), `rill-PQ` (previous quarter), `rill-PY` (previous year)'
2523
2529
type: string
2524
2530
enum:
2525
2531
- none
2526
2532
- time
2527
2533
- dimension
2534
+
- rill-PP
2535
+
- rill-PD
2536
+
- rill-PW
2537
+
- rill-PM
2538
+
- rill-PQ
2539
+
- rill-PY
2528
2540
comparison_dimension:
2529
2541
description: 'for dimension mode, specify the comparison dimension by name'
2530
2542
type: string
@@ -3648,7 +3660,17 @@ definitions:
3648
3660
description: Default time range to display when the explore view loads.
3649
3661
comparison_mode:
3650
3662
type: string
3651
-
description: Default comparison mode for metrics (none, time, or dimension).
3663
+
description: 'Controls how to compare current data. Options: `none`, `time` (alias for `rill-PP`), `dimension`, or a specific comparison offset: `rill-PP` (previous period), `rill-PD` (previous day), `rill-PW` (previous week), `rill-PM` (previous month), `rill-PQ` (previous quarter), `rill-PY` (previous year)'
3664
+
enum:
3665
+
- none
3666
+
- time
3667
+
- dimension
3668
+
- rill-PP
3669
+
- rill-PD
3670
+
- rill-PW
3671
+
- rill-PM
3672
+
- rill-PQ
3673
+
- rill-PY
3652
3674
comparison_dimension:
3653
3675
type: string
3654
3676
description: Default dimension to use for comparison when comparison_mode is 'dimension'.
// The exception to this is when back button is pressed and the user landed on empty url.
332
344
backButtonUsed;
333
345
334
346
constexploreStateOrder=[
335
-
// 1st priority is the state from url params. For certain params the state is from session storage.
336
-
// We need the state from session storage to make sure any state is not cleared while the user is still on the page but came back from a different dashboard.
337
-
// TODO: move all this logic based on url params to a "fromURL" method. Will replace convertURLSearchParamsToExploreState
338
-
exploreStateFromSessionStorage??
347
+
// 1st priority: per-view state (when switching views) or URL params.
0 commit comments