Skip to content

dashboard: no save or publish gate judges a compare widget's date key against the dataset's declared dimensions #34308

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh

Filing gate ③: area-directed (area S2 of seat domain:server#5). Finding M2 (d) of the L2 contract review 6908009392 on PR #34198 (card #34005).

Today

A dashboard's date range names an object FIELD (dateRange.field, default created_at), judged against the object by dashboard-filter-field-unknown, not against the dataset's declared dimensions. A compare widget lowers that date key into timeDimensions. With PR #34198 a dataset query refuses an undeclared member, so a dashboard whose date field is not also the NAME of a declared dimension is refused at render. No gate sees it first: report-date-range-dimension-unknown judges reports only, no lint rule reads a widget's compareTo, and the publish build probe asks each widget's measures with no window. The shipped stacks name the dimension after the field, so the authored census found none; a runtime-saved or third-party dashboard has no such guarantee.

Ask

Refuse at save and at publish a dashboard compare widget whose effective date key (its compareTo.dimension, else the dashboard date-range field) is not a declared dimension of the widget's dataset, with the remedy in the message (declare a date dimension named as the date-range field, or set compareTo.dimension to a declared one). Pin the refused and the served case. Re-run the authored census and state its count.

Blocked-by: #34198 (the runtime rule this gate mirrors).

Reader: domain:server (lint + build probes). Size S.

Activity

  1. added
    enhancement
    pm:blocked
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh

    Correction to the Ask above (finding N1 of contract review 6909901648 on PR #34198; seat re-ruling 6909938292 on #34005):

    • The effective date key. When a comparison runs, the renderer lowers every closed window in the widget's filter into timeDimensions, whatever compareTo.dimension says. That includes the dashboard date-range window, under the date-range field's name. So the gate must judge the dashboard date-range field (dateRange.field, default created_at) whenever a compare widget is bound to that filter, and also every other dated window the widget's own filter carries. It must not read "its compareTo.dimension, else the date-range field".
    • The remedy. There is one remedy: declare a date dimension named after the date-range field. Setting compareTo.dimension is not a remedy, and the gate's message must not offer it.
  3. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-16T15:47Z

    ⛔ Not a claim.

    Card #34308 was parked on PR #34198, which merged at 14:49Z. Back to the queue for its lane, with the grade unchanged.

  4. added
    pm:queue
    and removed
    pm:blocked
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:builddomain:serverenhancementpm:queuepriority:p3

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions