mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-11-03 20:19:31 +00:00 
			
		
		
		
	Fix Failing Migrations dues to charts (#22850)
(cherry picked from commit 5741bbb653f40c8b6eff620541810f4db3112130)
This commit is contained in:
		
							parent
							
								
									ae9311c032
								
							
						
					
					
						commit
						7989f156cb
					
				@ -261,7 +261,8 @@ public class MigrationUtil {
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  static DataInsightSystemChartRepository dataInsightSystemChartRepository;
 | 
			
		||||
  static DataInsightSystemChartRepository dataInsightSystemChartRepository =
 | 
			
		||||
      new DataInsightSystemChartRepository();
 | 
			
		||||
 | 
			
		||||
  public static void createChart(String chartName, Object chartObject) {
 | 
			
		||||
    createChart(chartName, chartObject, DataInsightCustomChart.ChartType.LINE_CHART);
 | 
			
		||||
 | 
			
		||||
@ -48,7 +48,8 @@ public class MigrationUtil {
 | 
			
		||||
  private static final String AUTOMATOR_APP_TYPE = "Automator";
 | 
			
		||||
  private static final String GLOSSARY_TERM_APPROVAL_WORKFLOW = "GlossaryTermApprovalWorkflow";
 | 
			
		||||
  private static final int BATCH_SIZE = 100;
 | 
			
		||||
  static DataInsightSystemChartRepository dataInsightSystemChartRepository;
 | 
			
		||||
  static DataInsightSystemChartRepository dataInsightSystemChartRepository =
 | 
			
		||||
      new DataInsightSystemChartRepository();
 | 
			
		||||
 | 
			
		||||
  public static void updateChart(String chartName, Object chartDetails) {
 | 
			
		||||
    DataInsightCustomChart chart =
 | 
			
		||||
@ -85,7 +86,6 @@ public class MigrationUtil {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public static void updateServiceCharts() {
 | 
			
		||||
    dataInsightSystemChartRepository = new DataInsightSystemChartRepository();
 | 
			
		||||
    updateChart(
 | 
			
		||||
        "tag_source_breakdown",
 | 
			
		||||
        new LineChart()
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user