FIX - e2e test for pydantic v2 (#16577)

* FIX - e2e test for pydantic v2

* FIX - e2e test for pydantic v2

* FIX - e2e test for pydantic v2
This commit is contained in:
Pere Miquel Brull 2024-06-10 08:04:36 +02:00 committed by GitHub
parent 4c8bf1cac1
commit d2bba3b8e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View File

@ -148,7 +148,7 @@ class MetabaseSource(DashboardServiceSource):
f"{replace_special_with(raw=dashboard_details.name.lower(), replacement='-')}"
)
dashboard_request = CreateDashboardRequest(
name=EntityName(dashboard_details.id),
name=EntityName(str(dashboard_details.id)),
sourceUrl=SourceUrl(dashboard_url),
displayName=dashboard_details.name,
description=Markdown(dashboard_details.description)

View File

@ -33,7 +33,7 @@ class MetabaseCollection(BaseModel):
"""
name: str
id: str
id: int
class MetabaseDashboardList(BaseModel):

View File

@ -158,7 +158,7 @@ class RedashSource(DashboardServiceSource):
dashboard_description = widgets.get("text")
dashboard_request = CreateDashboardRequest(
name=EntityName(dashboard_details["id"]),
name=EntityName(str(dashboard_details["id"])),
displayName=dashboard_details.get("name"),
description=Markdown(dashboard_description)
if dashboard_description
@ -274,7 +274,7 @@ class RedashSource(DashboardServiceSource):
continue
yield Either(
right=CreateChartRequest(
name=EntityName(widgets["id"]),
name=EntityName(str(widgets["id"])),
displayName=chart_display_name
if visualization and visualization["query"]
else "",

View File

@ -446,7 +446,7 @@ class DbtSource(DbtServiceSource):
if dbt_raw_query
else None,
# SQL Is a required param for the DataModel
sql=SqlQuery(dbt_compiled_query or dbt_raw_query),
sql=SqlQuery(dbt_compiled_query or dbt_raw_query or ""),
columns=self.parse_data_model_columns(
manifest_node, catalog_node
),