Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Release v1.16.0 - #42

Merged
vondravl merged 2 commits into
mainfrom
feature/v1.16.0
Jun 22, 2026
Merged

vondravl merged 2 commits into
mainfrom
feature/v1.16.0

Conversation

@vondravl

Copy link
Copy Markdown
Owner

Summary

Adds dashboards_filters — a per-dashboard filter-config overlay that captures each filter's visibility (mode), which dashboards_references could not represent.

Why

dashboards_references could tell you a filter was present on a dashboard, but a hidden filter looked identical to a visible one — and a hidden filter with no displayAsLabel left no reference row at all (references only emit a row when an object id is referenced). Visibility is an attribute of the filter config itself, so it needs its own home.

What's added

  • dashboards_filters table — one row per filter config from attributeFilterConfigs[], the common dateFilterConfig, and dateFilterConfigs[], keyed by local_identifier (joins filter_context_fields.local_identifier). Columns: mode (hidden/readwrite/readonly; NULL = default, visible), filter_type (attribute/date), tab_id, display_as_label_id, date_dataset_id. Covers both attribute and date filter visibility.
  • v_dashboards_filters view — dashboard title + derived filter_visible flag (0 only when mode='hidden'), with filter_title/display_form_id resolved from the filter context via scalar subqueries (no fan-out).

Design note

Mirrors the existing visualizations_filters ↔ visualizations_references split: keep the reference graph clean, put filter detail in a dedicated table.

Verification

  • 214 tests pass; ruff clean
  • Ran full local export + post-export end-to-end against the fixture — hidden filters return filter_visible=0 and filter titles resolve from the context

🤖 Generated with Claude Code

vondravl and others added 2 commits June 22, 2026 15:28
Add dashboards_filters table and v_dashboards_filters view to capture
per-dashboard filter visibility (mode: hidden/readwrite/readonly), which
dashboards_references could not represent.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Constrain the filter_title/display_form_id scalar subqueries by filter_type
and skip the empty local_identifier of the common date filter, so a date row
can't resolve to an unrelated attribute filter (or any unkeyed '' filter).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vondravl
vondravl marked this pull request as ready for review June 22, 2026 13:45
@vondravl
vondravl merged commit 74f9da3 into main Jun 22, 2026
1 check passed
@vondravl
vondravl deleted the feature/v1.16.0 branch June 22, 2026 13:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant