Skip to content

Commit

Permalink
fix(ingest/tableau): warn with better error message (datahub-project#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and sleeperdeep committed Jun 25, 2024
1 parent f6225ba commit 226695a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions metadata-ingestion/src/datahub/ingestion/source/tableau.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,12 @@ def form_path(project_id: str) -> List[str]:
cur_proj = all_project_map[project_id]
ancestors = [cur_proj.name]
while cur_proj.parent_id is not None:
if cur_proj.parent_id not in all_project_map:
self.report.report_warning(
"project-issue",
f"Parent project {cur_proj.parent_id} not found. We need Site Administrator Explorer permissions.",
)
break
cur_proj = all_project_map[cur_proj.parent_id]
ancestors = [cur_proj.name, *ancestors]
return ancestors
Expand Down

0 comments on commit 226695a

Please sign in to comment.