Skip to content

Commit

Permalink
fix(ingest/tableau): warn with better error message (#10749)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal authored and yoonhyejin committed Jul 16, 2024
1 parent 2114bd5 commit e93cae1
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 e93cae1

Please sign in to comment.