Skip to content

Commit

Permalink
actually get the id
Browse files Browse the repository at this point in the history
  • Loading branch information
UnsungHero97 committed Feb 17, 2022
1 parent 0ff5725 commit 47285c1
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,12 @@ class V3StudyMigrationUpgrade(
Optional.empty(),
false
).forEach { (legacyStudyEkid, legacyStudyFqnToValue) ->
logger.info("Processing all legacy participants of $legacyStudyEkid, with stringid ${legacyStudyFqnToValue.getOrDefault(FullQualifiedName("general.stringid"), null)}")
val studyId = legacyStudyFqnToValue[FullQualifiedName("general.stringid")]?.firstOrNull() as String?
logger.info("Processing all legacy participants of $legacyStudyEkid with id $studyId")
if (legacyStudyFqnToValue.isNotEmpty()) {
try {
entitySets.keySet(
Predicates.equal<UUID, EntitySet>("name", "chronicle_participants_${legacyStudyFqnToValue.getOrDefault(FullQualifiedName("general.stringid"), null)}")
Predicates.equal<UUID, EntitySet>("name", "chronicle_participants_$studyId")
).forEach { participantESID ->
dataQueryService.getEntitiesWithPropertyTypeFqns(
mapOf(participantESID to Optional.of(setOf<UUID>())),
Expand Down

0 comments on commit 47285c1

Please sign in to comment.