Skip to content

Commit

Permalink
Merge pull request #989 from eclipse-tractusx/fix/gate/wrong-task-ids
Browse files Browse the repository at this point in the history
fix(gate): Assigning Wrong Task-Ids
  • Loading branch information
SujitMBRDI authored Jul 8, 2024
2 parents a0a289a + e4cc1be commit 5ea8c20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ For changes to the BPDM Helm charts please consult the [changelog](charts/bpdm/C
### Changed:

- BPDM Gate: Fix sending business partner data to the golden record service even when they have no changes
- BPDM Gate: Fix sharing states sometimes taking the wrong task id from the orchestrator


## [6.0.2] - [2024-07-03]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ class TaskCreationService(
val orchestratorBusinessPartnersDto = foundPartners.map { orchestratorMappings.toOrchestratorDto(it) }
val createdTasks = createGoldenRecordTasks(TaskMode.UpdateFromSharingMember, orchestratorBusinessPartnersDto)

foundStates.zip(createdTasks).forEach { (state, task) ->
sharingStateService.setPending(state, task.taskId)
foundPartners.zip(createdTasks).forEach { (partner, task) ->
sharingStateService.setPending(partner.sharingState, task.taskId)
}

logger.info { "Created ${createdTasks.size} new golden record tasks from ready business partners" }
Expand Down

0 comments on commit 5ea8c20

Please sign in to comment.