From 1bed16fa14b4622ecfb7cd4a243b4a782f2d2cf1 Mon Sep 17 00:00:00 2001 From: Sriharsha Chintalapani Date: Tue, 29 Aug 2023 23:25:08 -0700 Subject: [PATCH] Fix test suite migrations for 1.1.x (#13037) --- .../service/migration/utils/v110/MigrationUtil.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v110/MigrationUtil.java b/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v110/MigrationUtil.java index 46a1485a2e9..44e7481935f 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v110/MigrationUtil.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/migration/utils/v110/MigrationUtil.java @@ -466,9 +466,7 @@ public class MigrationUtil { TestSuite stored; try { // If entity is found by Hash it is already migrated - testSuiteRepository - .getDao() - .findEntityByName(EntityInterfaceUtil.quoteName(testSuiteFqn), "nameHash", Include.ALL); + testSuiteRepository.getDao().findEntityByName(testSuiteFqn, "nameHash", Include.ALL); } catch (EntityNotFoundException entityNotFoundException) { try { // Check if the test Suite Exists, this brings the data on nameHash basis @@ -515,13 +513,7 @@ public class MigrationUtil { newExecutableTestSuite.getId(), test.getId(), TEST_SUITE, TEST_CASE, Relationship.CONTAINS); // Not a good approach but executable cannot be set true before - TestSuite temp = - testSuiteRepository - .getDao() - .findEntityByName( - EntityInterfaceUtil.quoteName(FullyQualifiedName.buildHash(testSuiteFqn)), - "nameHash", - Include.ALL); + TestSuite temp = testSuiteRepository.getDao().findEntityByName(testSuiteFqn, "nameHash", Include.ALL); temp.setExecutable(true); testSuiteRepository.getDao().update("nameHash", temp); } catch (Exception exIgnore) {