Repository navigation
fix(ingest/powerbi): derive page and tile chart inputs from report fields - #20885
brock-acryl wants to merge 7 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
7e7a0b8 to
abf0dc5
Compare
abf0dc5 to
575cda5
Compare
575cda5 to
b39109b
Compare
b39109b to
5ac5c5e
Compare
94778f3 to
aa7e8cd
Compare
aa7e8cd to
fe9e4bc
Compare
be34f71 to
f603f2c
Compare
f603f2c to
2caaea9
Compare
2caaea9 to
5c2a2a8
Compare
5c2a2a8 to
ffb32ad
Compare
e296c91 to
c5d0b47
Compare
c5d0b47 to
6b2f522
Compare
6b2f522 to
221e3ab
Compare
PR SummaryOverview Always-on improvements (any Docs and Reviewed by Cursor Bugbot for commit ceb63ca. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
All reported issues were addressed
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2b1649c. Configure here.
There was a problem hiding this comment.
All reported issues were addressed across 8 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
…elds With `extract_report_field_usage`, a report page chart's `ChartInfo.inputs` are now the semantic-model tables its visuals' resolved field references belong to (first-seen order) instead of every table of the model; a page whose references resolve to no table keeps the whole model, and the flag off keeps today's output. A tile pinned from a report takes the union of its report's pages' resolved tables, memoised per report id on the Mapper and resolved counter-free, so the page pass alone feeds the `report_field_references_*` counters as before; tiles pinned from a dataset, or from a report without resolved field references, keep the whole model. Page charts now carry `chartUrl` (the report URL plus the page segment, via `_page_url`) in every mode. This changes the flag-off goldens too: each page chart gains a `chartUrl`, which is intended; narrowed page `inputs` appear only in the workspace_apis field-usage goldens. An untitled tile is named `Tile <n>` after its 1-based position on the dashboard (`Constant.TILE_TITLE_FALLBACK`), applied to both `title` and `description`, instead of an empty string. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…to match A page or tile reference whose table exists but whose field is missing from the fetched schema (a renamed column) still proves the chart reads that table, so the table-level input is kept and only the field is counted as unresolved. Also makes the tile position keyword-only and separates the flag-gated input narrowing from the unconditional page URL and untitled-tile fallback in the docs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…eport fallbacks A page chart or report-backed tile only narrows its inputs when the model was actually emitted, so a dataset dropped by filter_dataset_endorsements can no longer leave charts pointing at tables no MCP creates; a visual of such a page has no inputs either. Page and tile narrowing now reads as "narrowed or whole model" without the redundant flag checks, page field resolution is shared through _resolve_page_fields, and pages that fall back to the whole model are counted and surfaced as a warning. The unresolved counters are split between unknown tables and missing fields of known tables. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…th modes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ale page fields - Tile inputs from a report's pages are intersected with the tile's emitted model, so narrowing never names a table this run did not emit. - A page whose field references match no schema field writes an empty InputFields so columns from an earlier run do not outlive the narrowed inputs. - The whole-model fallback is only counted and warned when the model was emitted. - Docs and the breaking-change entry describe the emitted-table rule, the silent fallback for unparsed definitions, input narrowing, and position-based tile names. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d usage A page missing from the report definition gets only the report-level filter fields, and a definition with unparsed parts or filters drops some fields, yet both narrowed ChartInfo.inputs to that subset and removed edges to tables the page still reads. Pages now carry field_usage_complete, set only for a page found in a fully parsed definition; page and report-tile narrowing (and the fallback warning) require it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ld usage Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Summary
extract_report_field_usage, a page chart lists as inputs only the model tables its fields read, and a tile pinned from a report lists the tables that report's pages read, instead of every table of the model. A table counts when a reference names it even if the field is missing from the schema; a page or tile whose references match no table keeps the whole model and is reported (report_pages_inputs_fallback).filter_dataset_endorsements).Tile <n>by their order in the dashboard's tile list (title only; URNs unchanged).Stack
Part of a stack built on #20842 (Power BI
metadata_api_mode: workspace_apis). Merge order:#20876 → #20877 → #20878 → #20879 → #20880 → #20881 → #20882 → #20883 → #20884 → #20885.
Review this PR's own diff against its base branch; each layer is self-contained and tested on its own.
Checklist
metadata-ingestion/docs/sources/powerbi/)🤖 Generated with Claude Code