docs: document relative date ranges in view-level default_ui_filters#11216
Conversation
Cube Cloud's view-level meta.default_ui_filters now accepts relative date bounds in between filters (e.g. values: ["7 days ago", "today"]), resolving at query time. Document the finalized authoring vocabulary: UI operator names, the [start, end] bound forms, query-time resolution and inclusivity, and validation behavior. Update the workbook filtering page example to match. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Claude finished @keydunov's task in 59s —— View job Code ReviewDocs-only PR. LGTM with two small optional nits — nothing blocking.Tasks
What looks good
Optional nits (non-blocking)
Things I checked and did not find issues with
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Check List
Description of Changes Made
Docs-only change for CUB-3018 (shipped in
cubejs-enterprise#12945/#12956): view-levelmeta.default_ui_filtersnow supports relative date bounds, and its authoring vocabulary was finalized to mirror the workbook filter bar.reference/data-modeling/view.mdx—default_ui_filterssectionbetweenwithvalues: ["7 days ago", "today"](inline YAML arrays per house style), and the intro mentions views embedded via the React Embed SDK.equals,not_equals,between,greater_than, …,is_null,is_not_null).betweentakes an explicit two-element[start, end]pair; each bound is a relative value (today,yesterday,N <unit>s ago,N <unit>s from now,this week|month|quarter|year,nowas alias fortoday), a fixed ISO date, or a number for numeric members. Covers relative values on open-ended comparisons (greater_than: ["7 days ago"]), query-time resolution (CURRENT_DATE-based SQL, rolls day over day), both-bounds inclusivity, the Relative-tab editor, case/whitespace-insensitivity, and validation (a bad bound or single-valuebetweendrops that entry with a console warning; view selection never breaks).docs/explore-analyze/workbooks/querying-data.mdxNotes for the reviewer
inDateRangedocs and thedefault_filterssection are deliberately untouched — their semantics are unchanged, and query-level relative support is a separate unshipped ticket (CUB-3129)."last 7 days","from … to …") are intentionally not documented; they were never released as public syntax and are rejected.Rendered locally with
mintlify devand reviewed.🤖 Generated with Claude Code