You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2022/08/17 12:40:42 UTC
[unomi] branch migrationAutomation updated: UNOMI-622: add final status for migration finished
This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch migrationAutomation
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/migrationAutomation by this push:
new c83b4cd8a UNOMI-622: add final status for migration finished
c83b4cd8a is described below
commit c83b4cd8a2ae520332e474b65f9fb9ebbd5f7260
Author: Kevan <ke...@jahia.com>
AuthorDate: Wed Aug 17 14:40:33 2022 +0200
UNOMI-622: add final status for migration finished
---
.../org/apache/unomi/shell/migration/service/MigrationServiceImpl.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/service/MigrationServiceImpl.java b/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/service/MigrationServiceImpl.java
index fa437cc07..9722bb3fd 100644
--- a/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/service/MigrationServiceImpl.java
+++ b/tools/shell-commands/src/main/java/org/apache/unomi/shell/migration/service/MigrationServiceImpl.java
@@ -135,6 +135,9 @@ public class MigrationServiceImpl implements MigrationService {
context.printMessage("Finish execution of: " + migrateScript);
}
+
+ // Persist final flag in history
+ context.performMigrationStep("migrationStatus", () -> { /* nothing it's just a marker to persist in the history to know that everything is finished */ });
}
}