From 3f1dc322bf9a5f7eec3fc42e5813c793676263b4 Mon Sep 17 00:00:00 2001 From: njhlai Date: Wed, 16 Feb 2022 00:36:48 -0800 Subject: [PATCH] More errors fixed --- .../mechanic/upgrades/V3StudyMigrationUpgrade.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt b/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt index 00123f78..2377c5ee 100644 --- a/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt +++ b/src/main/kotlin/com/openlattice/mechanic/upgrades/V3StudyMigrationUpgrade.kt @@ -96,9 +96,7 @@ class V3StudyMigrationUpgrade( // "nc.PersonBirthDate", UUID.fromString("1e6ff0f0-0545-4368-b878-677823459e57"), // "nc.SubjectIdentification", - UUID.fromString("5260cfbd-bfa4-40c1-ade5-cd83cc9f99b2"), - // "ol.status", - UUID.fromString("2a45205e-703c-43eb-a060-921bf7245f6a") + UUID.fromString("5260cfbd-bfa4-40c1-ade5-cd83cc9f99b2") ) ).toMap() @@ -180,7 +178,7 @@ class V3StudyMigrationUpgrade( logger.info("Processing all legacy participants of $legacyStudyEkid") try { entitySets.keySet( - Predicates.equal("name", "chronicle_participants_${legacyStudyFqnToValue[FullQualifiedName("general.stringid")]}") + Predicates.equal("name", "chronicle_participants_${legacyStudyFqnToValue[FullQualifiedName("general.stringid")]!!.first()}") ).forEach { participantESID -> dataQueryService.getEntitiesWithPropertyTypeFqns( mapOf(participantESID to Optional.of(setOf())),