Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
njhlai committed Feb 16, 2022
1 parent 03c5870 commit d71fa5a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class V3StudyMigrationUpgrade(
// process participants of studies
logger.info("Processing all participants of $v2Id")
try {
processParticipantsOfStudy(connection, orgId, v2Id, orgStudyEntitySetIds, orgMaybeParticipantEntitySetIds)
processParticipantsOfStudy(connection, v2Id, orgStudyEntitySetIds, orgMaybeParticipantEntitySetIds)
} catch (ex: Exception) {
logger.error("An error occurred processing participants of $v2Id", ex)
}
Expand All @@ -176,11 +176,11 @@ class V3StudyMigrationUpgrade(
EnumSet.of(MetadataOption.LAST_WRITE),
Optional.empty(),
false
).forEach { (legacyStudyEkid, _) ->
).forEach { (legacyStudyEkid, legacyStudyFqnToValue) ->
logger.info("Processing all legacy participants of $legacyStudyEkid")
try {
entitySets.entrySet(
Predicates.equal<UUID, EntitySet>("name", "chronicle_participants_${legacyStudyEkid}")
entitySets.keySet(
Predicates.equal<UUID, EntitySet>("name", "chronicle_participants_${legacyStudyFqnToValue[FullQualifiedName("general.stringid")]}")
).forEach { participantESID ->
dataQueryService.getEntitiesWithPropertyTypeFqns(
mapOf(participantESID to Optional.of(setOf<UUID>())),
Expand All @@ -189,7 +189,7 @@ class V3StudyMigrationUpgrade(
EnumSet.noneOf(MetadataOption::class.java),
Optional.empty(),
false
).forEach { (_, legacyParticipantFqnToValue)
).forEach { (_, legacyParticipantFqnToValue) ->
logger.info("Inserting participant: $legacyParticipantFqnToValue into candidates")
insertIntoCandidatesTable(connection, legacyStudyEkid, legacyParticipantFqnToValue)
}
Expand Down Expand Up @@ -243,7 +243,7 @@ class V3StudyMigrationUpgrade(
return true
}

private fun processParticipantsOfStudy(conn: Connection, orgId: UUID, studyEkid: UUID, orgStudyEntitySetIds: Set<UUID>, orgMaybeParticipantEntitySetIds: Set<UUID>) {
private fun processParticipantsOfStudy(conn: Connection, studyEkid: UUID, orgStudyEntitySetIds: Set<UUID>, orgMaybeParticipantEntitySetIds: Set<UUID>) {

val filter = EntityNeighborsFilter(setOf(studyEkid), Optional.of(orgMaybeParticipantEntitySetIds), Optional.of(orgStudyEntitySetIds), Optional.empty())

Expand Down

0 comments on commit d71fa5a

Please sign in to comment.