Skip to content

Commit

Permalink
Merge pull request #1347 from elementary-data/ele-2223-root-dir-of-bi…
Browse files Browse the repository at this point in the history
…-integration-in-tree-should-be-the-name-of-the

Root dir of BI integration in sidebar is the name of the BI integration as opposed to 'exposures'
  • Loading branch information
elongl authored Jan 3, 2024
2 parents 4b94ca9 + a3192d7 commit 5737f36
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion elementary/monitor/api/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ def _normalize_artifact_path(cls, artifact: ArtifactSchemaType, fqn: str) -> str
# For exposures, we want the path to be based on the path in the BI rather than
# the file system path of the exposures yaml.
# NOTE - if there is no path provided in the BI, the FQN will just be the exposure name.
split_artifact_path = ["exposures"] + fqn.split("/")
split_artifact_path = [
artifact.meta.get("platform", "exposures")
if artifact.meta
else "exposures"
] + fqn.split("/")
else:
split_artifact_path = artifact.full_path.split(os.path.sep)

Expand Down

0 comments on commit 5737f36

Please sign in to comment.