Class MigrationUtil
- java.lang.Object
-
- org.openmetadata.service.migration.utils.v110.MigrationUtil
-
public class MigrationUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<MigrationDAO.ServerMigrationSQLTable>addInListIfToBeExecuted(String version, Set<String> lookUp, List<String> queries)static MigrationDAO.ServerMigrationSQLTablebuildServerMigrationTable(String version, String statement)static TestSuitecopy(TestSuite entity, CreateEntity request, String updatedBy)static voiddataMigrationFQNHashing(org.jdbi.v3.core.Handle handle, CollectionDAO collectionDAO, int limitParam)static TestSuitegetTestSuite(CollectionDAO dao, CreateTestSuite create, String user)static Map<String,ArrayList<TestCase>>groupTestCasesByTable(CollectionDAO collectionDAO)static voidperformSqlExecutionAndUpdate(org.jdbi.v3.core.Handle handle, MigrationDAO migrationDAO, List<String> queryList, String version)static <T extends EntityInterface>
voidreadAndProcessEntity(org.jdbi.v3.core.Handle handle, String updateSql, Class<T> clazz, EntityDAO<T> dao, boolean withName, int limitParam)static voidtestSuitesMigration(CollectionDAO collectionDAO)Test Suites Migration in 1.0.x -> 1.1.4 1.static <T extends EntityInterface>
voidupdateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)static <T extends EntityInterface>
voidupdateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)static voidupdateFQNHashTagUsage(CollectionDAO collectionDAO)
-
-
-
Method Detail
-
updateFQNHashForEntity
public static <T extends EntityInterface> void updateFQNHashForEntity(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)
-
updateFQNHashForEntityWithName
public static <T extends EntityInterface> void updateFQNHashForEntityWithName(org.jdbi.v3.core.Handle handle, Class<T> clazz, EntityDAO<T> dao, int limitParam)
-
readAndProcessEntity
public static <T extends EntityInterface> void readAndProcessEntity(org.jdbi.v3.core.Handle handle, String updateSql, Class<T> clazz, EntityDAO<T> dao, boolean withName, int limitParam)
-
buildServerMigrationTable
public static MigrationDAO.ServerMigrationSQLTable buildServerMigrationTable(String version, String statement)
-
addInListIfToBeExecuted
public static List<MigrationDAO.ServerMigrationSQLTable> addInListIfToBeExecuted(String version, Set<String> lookUp, List<String> queries)
-
dataMigrationFQNHashing
public static void dataMigrationFQNHashing(org.jdbi.v3.core.Handle handle, CollectionDAO collectionDAO, int limitParam)
-
updateFQNHashTagUsage
public static void updateFQNHashTagUsage(CollectionDAO collectionDAO)
-
performSqlExecutionAndUpdate
public static void performSqlExecutionAndUpdate(org.jdbi.v3.core.Handle handle, MigrationDAO migrationDAO, List<String> queryList, String version)
-
getTestSuite
public static TestSuite getTestSuite(CollectionDAO dao, CreateTestSuite create, String user)
-
copy
public static TestSuite copy(TestSuite entity, CreateEntity request, String updatedBy)
-
testSuitesMigration
public static void testSuitesMigration(CollectionDAO collectionDAO)
Test Suites Migration in 1.0.x -> 1.1.4 1. This is the first time users are migrating from User created TestSuite to System created native TestSuite Per Table 2. Our Goal with this migration is to list all the test cases and create .testSuite with executable set to true and associate all of the respective test cases with new native test suite.- Parameters:
collectionDAO-
-
groupTestCasesByTable
public static Map<String,ArrayList<TestCase>> groupTestCasesByTable(CollectionDAO collectionDAO)
-
-