mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-15 04:26:59 +00:00
MINOR: Update DayOneWorkflow Agent Names (#20473)
* Update DayOneWorkflow Agent Names * Migrations for CollateAI DisplayName Update * Remove wrong migrations
This commit is contained in:
parent
162244a127
commit
c9182016db
@ -48,4 +48,4 @@ CREATE INDEX IF NOT EXISTS query_cost_time_series_id_timestamp on test_case_res
|
||||
|
||||
UPDATE workflow_definition_entity
|
||||
SET json = jsonb_set(json, '{trigger,type}', '"periodicBatchEntity"')
|
||||
WHERE json->'trigger'->>'type' in ('periodicBatchEntityTrigger', 'periodicBatchEntityWorkflow');
|
||||
WHERE json->'trigger'->>'type' in ('periodicBatchEntityTrigger', 'periodicBatchEntityWorkflow');
|
@ -192,9 +192,21 @@ public class CreateIngestionPipelineImpl {
|
||||
return response.getCode() == 200;
|
||||
}
|
||||
|
||||
private String getPipelineName(PipelineType pipelineType) {
|
||||
Map<PipelineType, String> pipelineNameByType =
|
||||
Map.of(
|
||||
PipelineType.METADATA, "Metadata Agent",
|
||||
PipelineType.USAGE, "Usage Agent",
|
||||
PipelineType.LINEAGE, "Lineage Agent",
|
||||
PipelineType.PROFILER, "Profiler Agent",
|
||||
PipelineType.AUTO_CLASSIFICATION, "AutoClassification Agent");
|
||||
|
||||
return pipelineNameByType.get(pipelineType);
|
||||
}
|
||||
|
||||
private IngestionPipeline getOrCreateIngestionPipeline(
|
||||
PipelineType pipelineType, ServiceEntityInterface service) {
|
||||
String displayName = String.format("[%s] %s", service.getName(), pipelineType);
|
||||
String displayName = getPipelineName(pipelineType);
|
||||
IngestionPipelineRepository repository =
|
||||
(IngestionPipelineRepository) Entity.getEntityRepository(Entity.INGESTION_PIPELINE);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user