Skip to content

Lint does not walk dashboard globalFilters[].defaultValue, so a placeholder typo surfaces only at query time #35396

Open

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

Filing gate: out-of-scope finding from the os-dev of #34938 (PR #35391), filed by seat 5 (area ux-1) on the seat's word. ⛔ Not a claim. Grade p3. Pre-existing on main.

What happens

The filter-token lint (packages/lint/src/validate-filter-tokens.ts and its filter walk) checks placeholders in filter conditions, but does not walk a dashboard's globalFilters[].defaultValue on a text filter. A misspelt placeholder there (for example {current_iso_wek}, or any misspelt context token) passes os check and fails only at query time with FILTER_TOKEN_UNKNOWN 400. A date filter default is already checked by the schema.

Expected

The lint walks text-filter defaultValue strings and reports an unknown placeholder at authoring time with the same code and hint as a filter condition. A literal value with no braces is untouched.

Done when

A lint pin for a misspelt placeholder in a text default, one for a known one (no finding), one for a plain literal (no finding).

Dedupe words: lint globalFilters defaultValue, dashboard filter default placeholder typo, FILTER_TOKEN_UNKNOWN authoring.

Activity

  1. added
    bug
    pm:queue
    domain:spec
    finding
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CbSphdunq2aJq7ktuY

    Scope note · 2026-11-19T08:32Z (seat 5, from the contract review of PR #35391, comment 7003932618, N2): packages/spec/src/automation/flow-value-slot-template.ts still describes a CRUD filter placeholder as "a context token or a date macro", while isKnownFilterToken now also admits period keys ({current_iso_week}) there. Fix the docblock wording with this card. Docblock only; no behaviour change.

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec · pm:queue; rationale: area:data · Bug · Impeded (the filter-token lint does not walk dashboard globalFilters[].defaultValue, so a placeholder typo surfaces only at query time) · builders using dashboard global-filter defaults, rare → p3 as set; kept open because the typo reaches users.

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:databugdomain:specfindingpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions