From 0ff5725c50625cac4738c92ddc98eb9f8d791bfd Mon Sep 17 00:00:00 2001 From: Hristo Oskov Date: Wed, 16 Feb 2022 16:06:17 -0800 Subject: [PATCH] revert to ekid for legacy as well --- .../openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt b/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt index 1c4e2cf5..e1592cc5 100644 --- a/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt +++ b/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt @@ -186,7 +186,6 @@ class V3StudyMigrationUpgrade( entitySets.keySet( Predicates.equal("name", "chronicle_participants_${legacyStudyFqnToValue.getOrDefault(FullQualifiedName("general.stringid"), null)}") ).forEach { participantESID -> - val legacyStudyStringId = UUID.fromString(legacyStudyFqnToValue[FullQualifiedName("general.stringid")]!!.first() as String) dataQueryService.getEntitiesWithPropertyTypeFqns( mapOf(participantESID to Optional.of(setOf())), mapOf(participantESID to legacyParticipantPropertyTypes), @@ -196,7 +195,7 @@ class V3StudyMigrationUpgrade( false ).forEach { (_, legacyParticipantFqnToValue) -> logger.info("Inserting participant: $legacyParticipantFqnToValue into candidates") - insertIntoCandidatesTable(connection, legacyStudyStringId, legacyParticipantFqnToValue) + insertIntoCandidatesTable(connection, legacyStudyEkid, legacyParticipantFqnToValue) } } } catch (ex: Exception) {