From 648df4128aff07441d6e95bcf5275d6f658008cb Mon Sep 17 00:00:00 2001 From: Christian Kurz Date: Wed, 16 Oct 2024 21:40:47 +0200 Subject: [PATCH] rename label remains & dokka --- sync/src/main/kotlin/gropius/sync/AbstractSync.kt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/sync/src/main/kotlin/gropius/sync/AbstractSync.kt b/sync/src/main/kotlin/gropius/sync/AbstractSync.kt index 9fb0ac11..3700339f 100644 --- a/sync/src/main/kotlin/gropius/sync/AbstractSync.kt +++ b/sync/src/main/kotlin/gropius/sync/AbstractSync.kt @@ -906,14 +906,10 @@ abstract class AbstractSync( * @param timeline Timeline of the issue * @param imsProject IMS project to sync * @param issueInfo Issue to sync - * @param label Label to sync - * @param virtualIDs mapping for timeline items that are geerated with generated ids and do not exist in the database */ private suspend fun syncOutgoingAssignments( timeline: List, imsProject: IMSProject, issueInfo: IssueConversionInformation ) { - val labelStateMap = this.labelStateMap(imsProject) - val stateLabelMap = labelStateMap.map { it.value to it.key }.toMap() val virtualIDs = mutableMapOf() val modifiedTimeline = @@ -934,9 +930,11 @@ abstract class AbstractSync( /** * Sync Outgoing Assignments - * @param timeline Timeline of the issue + * @param relevantTimeline Timeline of the issue * @param imsProject IMS project to sync * @param issueInfo Issue to sync + * @param assignment Assignment to sync + * @param virtualIDs mapping for timeline items that are geerated with generated ids and do not exist in the database */ private suspend fun syncOutgoingSingleAssignment( relevantTimeline: List, @@ -945,17 +943,17 @@ abstract class AbstractSync( assignment: Assignment, virtualIDs: Map ) { - var labelIsSynced = false + var assignmentIsSynced = false val finalBlock = findFinalTypeBlock(relevantTimeline) for (item in finalBlock) { val relevantEvent = collectedSyncInfo.timelineItemConversionInformationService.findByImsProjectAndGropiusId( imsProject.rawId!!, item.rawId ?: virtualIDs[item]!! ) if (relevantEvent?.githubId != null) { - labelIsSynced = true + assignmentIsSynced = true } } - if (!labelIsSynced) { + if (!assignmentIsSynced) { if (shouldSyncType( imsProject, finalBlock, relevantTimeline, true, virtualIDs )