Fix: Tableau Validation Errors (#21530)

This commit is contained in:
Suman Maharana 2025-06-03 11:03:45 +05:30 committed by GitHub
parent d5ba5e14a1
commit c00ed22866
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -105,9 +105,7 @@ class TableauClient:
if owner and owner.email:
return TableauOwner(id=owner.id, name=owner.name, email=owner.email)
except Exception as err:
logger.warning(
f"Failed to fetch owner details for ID {owner_id}: {str(err)}"
)
logger.debug(f"Failed to fetch owner details for ID {owner_id}: {str(err)}")
return None
def get_workbook_charts_and_user_count(
@ -309,7 +307,7 @@ class TableauClient:
except Exception:
logger.debug(traceback.format_exc())
logger.warning("Unable to fetch Data Sources")
return None
return []
def get_custom_sql_table_queries(self, datasource_id: str) -> Optional[List[str]]:
"""

View File

@ -187,7 +187,7 @@ class TableauDashboard(TableauBaseModel):
tags: Optional[Set] = []
webpageUrl: Optional[str] = None
charts: Optional[List[TableauChart]] = None
dataModels: List[DataSource] = []
dataModels: Optional[List[DataSource]] = []
custom_sql_queries: Optional[List[str]] = None
user_views: Optional[int] = None