FIX - Automation Workflows should not be updated by the SM & cleanup migration (#21435)

Co-authored-by: Mohit Yadav <105265192+mohityadav766@users.noreply.github.com>
(cherry picked from commit e58802b659c87afc1e18e92cfe50cdfc4c769dce)
This commit is contained in:
Pere Miquel Brull 2025-06-03 12:17:14 +02:00 committed by OpenMetadata Release Bot
parent 5e11818589
commit 25d9759967
3 changed files with 4 additions and 9 deletions

View File

@ -0,0 +1,2 @@
-- cleanup dangling test connections
truncate automations_workflow;

View File

@ -0,0 +1,2 @@
-- cleanup dangling test connections
truncate automations_workflow;

View File

@ -76,7 +76,6 @@ public class SecretsManagerUpdateService {
updateServices();
updateBotUsers();
updateIngestionPipelines();
updateWorkflows();
}
private void updateServices() {
@ -103,14 +102,6 @@ public class SecretsManagerUpdateService {
retrieveIngestionPipelines().forEach(this::updateIngestionPipeline);
}
private void updateWorkflows() {
LOG.info(
String.format(
"Updating workflows in case of an update on the JSON schema: [%s]",
secretManager.getSecretsManagerProvider().value()));
retrieveWorkflows().forEach(this::updateWorkflow);
}
private void updateService(ServiceEntityInterface serviceEntityInterface) {
ServiceEntityRepository<?, ?> repository =
connectionTypeRepositoriesMap.get(serviceEntityInterface.getConnection().getClass());