Skip to content

[Detail Bug] Omni connector skips SHARED_EXTENSION semantic models, causing missing data models and lineage #39137

In review

Description

@detail-app

Detail Bug Report

https://app.detail.dev/org_3377c26d-da48-4ccd-b83a-22c542f4fe83/bugs/bug_900b6be0-c1be-4bc0-af81-c4109c9bb5ea

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 kind SHARED_EXTENSION are 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 SHARED models 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 SHARED model 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 set
def 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 it

Explanation

  • get_models() filters models twice: it requests only the kinds in SEMANTIC_MODEL_KINDS via the modelKind query param, then applies an in-client guard model.modelKind in SEMANTIC_MODEL_KINDS.
  • Because SEMANTIC_MODEL_KINDS contains only "SHARED", SHARED_EXTENSION models 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 from get_models(). Tile resolution (_resolve_topic) has no fallback (e.g., by modelId from 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_EXTENSION as 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, SCHEMA but omits SHARED_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 guard

History

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.

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

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions