Repository navigation
In review
Description
Detail Bug Report
Introduced in #29630 by @Michae94 on Jul 30, 2026
Summary
- Context: The Omni dashboard connector's client lists the instance's semantic-layer models (
GET /api/v1/models) and parses each model's YAML into topics/views, which become data models and carry warehouse-table and dashboard lineage. - Bug: The client hard-codes
SEMANTIC_MODEL_KINDS = {"SHARED"}, so Omni models of kindSHARED_EXTENSIONare never fetched/ingested, even though the Omni API documents them as a semantic-layer model kind that can contain its own topics/views and act as the base model of workbooks. - Actual vs. expected: Extension models and all their views/topics are silently absent from the catalog, and dashboard tiles that read views defined in an extension model resolve to nothing, dropping their lineage; expected behavior is that extension models are ingested like
SHAREDmodels and their tiles resolve to data models. - Impact: Silent loss of the extension semantic layer — extension models, their data models, and their warehouse-lineage edges are entirely missing, and dashboard-lineage edges are partially lost: tiles referencing topics/views inherited from the parent
SHAREDmodel still resolve, while tiles referencing content defined only in the extension model (or resolving to a parent-model data model on a name collision) lose or misroute their lineage — with no warning or error in ingestion status.
Code with Bug
ingestion/src/metadata/ingestion/source/dashboard/omni/client.py
# Only the shared semantic-layer model(s) carry the real views/topics. The other
# model kinds (QUERY, WORKBOOK, BRANCH, SCHEMA) are per-document and would explode
# the number of API calls against the 60 req/min rate limit.
SEMANTIC_MODEL_KINDS = {"SHARED"} # <-- BUG 🔴 SHARED_EXTENSION missing from the setdef get_models(self) -> list[OmniModel]:
"""List the shared semantic-layer models in the instance."""
# Keep the server-side param and the client-side guard in sync by
# deriving both from SEMANTIC_MODEL_KINDS.
model_kind = ",".join(sorted(SEMANTIC_MODEL_KINDS))
try:
models = list(self._paginate("/models", ModelsResponse, params={"modelKind": model_kind}))
...
semantic_models = [model for model in models if model.modelKind in SEMANTIC_MODEL_KINDS] # <-- BUG 🔴 drops SHARED_EXTENSION even if the server returned itExplanation
get_models()filters models twice: it requests only the kinds inSEMANTIC_MODEL_KINDSvia themodelKindquery param, then applies an in-client guardmodel.modelKind in SEMANTIC_MODEL_KINDS.- Because
SEMANTIC_MODEL_KINDScontains only"SHARED",SHARED_EXTENSIONmodels are never downloaded (server-side filter) and would be dropped even if returned (client-side filter). This makes the omission silent (no mismatch branch/logging triggers). OmniSource.prepare()builds its topic/view index only fromget_models(). Tile resolution (_resolve_topic) has no fallback (e.g., bymodelIdfrom the dashboard document), so tiles that reference views/topics defined only in an extension model fail to resolve and emit no dashboard→data-model lineage.- Omni’s API and docs explicitly define
SHARED_EXTENSIONas a semantic-layer model kind that can contain its own view/topic YAML and can be the base model for workbooks, so excluding it loses real, queryable semantic-layer content.
Codebase Inconsistency
- The inline comment explaining excluded kinds lists
QUERY, WORKBOOK, BRANCH, SCHEMAbut omitsSHARED_EXTENSION, indicating this exclusion is unintended/unacknowledged.
Recommended Fix
Ingest both SHARED and SHARED_EXTENSION, and update request construction because the API’s modelKind param is single-valued (comma-joining would become invalid once a second kind is added):
SEMANTIC_MODEL_KINDS = {"SHARED", "SHARED_EXTENSION"}
for kind in sorted(SEMANTIC_MODEL_KINDS):
models.extend(self._paginate("/models", ModelsResponse, params={"modelKind": kind}))
# ...keep the existing client-side guardHistory
This bug was introduced in commit 25350cb ("Fixes #29629: Add Omni dashboard connector (#29630)", 2026-07-30), the initial commit that added the Omni dashboard connector. The file was later touched by 8a996a6 (2026-09-16) but did not modify get_models() or SEMANTIC_MODEL_KINDS.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsNo status
Activity