mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +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='-')}" |                 f"{replace_special_with(raw=dashboard_details.name.lower(), replacement='-')}" | ||||||
|             ) |             ) | ||||||
|             dashboard_request = CreateDashboardRequest( |             dashboard_request = CreateDashboardRequest( | ||||||
|                 name=EntityName(dashboard_details.id), |                 name=EntityName(str(dashboard_details.id)), | ||||||
|                 sourceUrl=SourceUrl(dashboard_url), |                 sourceUrl=SourceUrl(dashboard_url), | ||||||
|                 displayName=dashboard_details.name, |                 displayName=dashboard_details.name, | ||||||
|                 description=Markdown(dashboard_details.description) |                 description=Markdown(dashboard_details.description) | ||||||
|  | |||||||
| @ -33,7 +33,7 @@ class MetabaseCollection(BaseModel): | |||||||
|     """ |     """ | ||||||
| 
 | 
 | ||||||
|     name: str |     name: str | ||||||
|     id: str |     id: int | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class MetabaseDashboardList(BaseModel): | class MetabaseDashboardList(BaseModel): | ||||||
|  | |||||||
| @ -158,7 +158,7 @@ class RedashSource(DashboardServiceSource): | |||||||
|                 dashboard_description = widgets.get("text") |                 dashboard_description = widgets.get("text") | ||||||
| 
 | 
 | ||||||
|             dashboard_request = CreateDashboardRequest( |             dashboard_request = CreateDashboardRequest( | ||||||
|                 name=EntityName(dashboard_details["id"]), |                 name=EntityName(str(dashboard_details["id"])), | ||||||
|                 displayName=dashboard_details.get("name"), |                 displayName=dashboard_details.get("name"), | ||||||
|                 description=Markdown(dashboard_description) |                 description=Markdown(dashboard_description) | ||||||
|                 if dashboard_description |                 if dashboard_description | ||||||
| @ -274,7 +274,7 @@ class RedashSource(DashboardServiceSource): | |||||||
|                     continue |                     continue | ||||||
|                 yield Either( |                 yield Either( | ||||||
|                     right=CreateChartRequest( |                     right=CreateChartRequest( | ||||||
|                         name=EntityName(widgets["id"]), |                         name=EntityName(str(widgets["id"])), | ||||||
|                         displayName=chart_display_name |                         displayName=chart_display_name | ||||||
|                         if visualization and visualization["query"] |                         if visualization and visualization["query"] | ||||||
|                         else "", |                         else "", | ||||||
|  | |||||||
| @ -446,7 +446,7 @@ class DbtSource(DbtServiceSource): | |||||||
|                                 if dbt_raw_query |                                 if dbt_raw_query | ||||||
|                                 else None, |                                 else None, | ||||||
|                                 # SQL Is a required param for the DataModel |                                 # 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( |                                 columns=self.parse_data_model_columns( | ||||||
|                                     manifest_node, catalog_node |                                     manifest_node, catalog_node | ||||||
|                                 ), |                                 ), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Pere Miquel Brull
						Pere Miquel Brull