Repository navigation
Ingestion filters: no search lookups to decide, exclusions reported once, PowerBI reads only kept items - #39889
Khairajani wants to merge 2 commits into
Conversation
…t once and prune PowerBI detail reads
…ons once, prune PowerBI detail reads Views and NoSQL collections build their filter FQN without a search request, as tables already do. Mark-deleted listings no longer report excluded databases or NoSQL schemas a second time. Non-admin PowerBI reads tiles and dataset tables only for the dashboards and data models the filters keep. The filter_by_* docstrings now say exclude wins, which is what _filter does.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟡 Medium riskSkipping search lookups for view and collection filters and pruning PowerBI detail reads changes ingestion execution; inconsistent filter decisions could omit metadata. Stops view and NoSQL collection filtering from issuing search requests, reports each excluded database and schema once instead of twice, and makes PowerBI non-admin mode fetch tiles and dataset tables only for kept dashboards and data models. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Part of open-metadata/openmetadata-collate#8106: the ingestion-side filtering fixes. Test connection follows in a second PR.
common_db_source.py) and NoSQL collection FQNs (common_nosql_source.py) are built withskip_es_search=True, as table FQNs already are. Before, every view and every Mongo/Couchbase/… collection cost one search request before its filter decision.mark_databases_as_deletedre-listed databases with reporting on, so every excluded database appeared twice in the run's filtered list. It now lists them withadd_to_status=False. The seen-set is unchanged, and the comment now says what the code does.CommonNoSQLSourcegains aget_raw_database_schema_namesthat only lists. Before, mark-deleted (on by default) fell back to the filtering, reporting producer, so excluded databases were reported twice.SourceListingcounters, filter reports and deletion behaviour are unchanged.filter_by_*said "include takes precedence over exclude";_filterlets exclude win. They now say so.Not changed on purpose: the PowerBI workspace filter. It is only an OData approximation of the regex (
salesbecomescontains), so re-checking workspaces locally withre.matchwould drop workspaces existing pipelines ingest, and mark-deleted would remove their dashboards. That needs its own decision.Type of change:
High-level design:
N/A: small fixes; no new contract or behaviour change in what gets ingested.
Tests:
Which test layer and why
Python unit tests. Each pins a call that must not happen (search request, second report, detail fetch) on mocked clients.
Use cases covered
Unit tests
tests/unit/topology/database/test_filter_decisions.pyandtests/unit/topology/dashboard/test_powerbi_fetch_pruning.py(10 tests).main's source 7 of 10 fail on behaviour (search called twice per view/collection,status.filtercalled again from mark-deleted, tiles/tables fetched for excluded items); the 3 guards pass. All 10 pass on this branch.tests/unit/topology/database,tests/unit/topology/dashboard,tests/unit/source/databaseand the filter-pattern tests.Backend integration tests
Ingestion integration tests
tests/integration/mongodbnot run locally: pending (merge queue runs it).Playwright (UI) tests
Manual testing performed
None beyond the tests above.
UI screen recording:
Not applicable: ingestion-only change.
Checklist:
🤖 Generated with Claude Code