mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-08 16:38:04 +00:00
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:
parent
4c8bf1cac1
commit
d2bba3b8e0
@ -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)
|
||||
|
@ -33,7 +33,7 @@ class MetabaseCollection(BaseModel):
|
||||
"""
|
||||
|
||||
name: str
|
||||
id: str
|
||||
id: int
|
||||
|
||||
|
||||
class MetabaseDashboardList(BaseModel):
|
||||
|
@ -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 "",
|
||||
|
@ -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
|
||||
),
|
||||
|
Loading…
x
Reference in New Issue
Block a user