mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-29 02:48:24 +00:00
fix(ingest/tableau): warn with better error message (#10749)
This commit is contained in:
parent
190f09ad7a
commit
f581f70c93
@ -665,6 +665,12 @@ class TableauSource(StatefulIngestionSourceBase, TestableSource):
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user