Skip to content

3679: Fix migration of multiple Deployments referencing the same entities

Simon Barner requested to merge 3679 into master

In DeploymentToAllocationMigration.migrateDeployment()

  • Do not useAllocationTableUtils.getOrCreateAllocationTable() since then for the n-th (n>1) Deployment, erroneously an error is emitted that the respective (Component, ExecutionUnit) pair has already been migrated
  • Instead, manually create an AllocationTableCollection and the respective table
  • It is ensured by markAsDone() / isDone() that for each Deployment, only one ComponentToExecutionUnitTable is created.

Issue-Ref: 3679 Issue-Url: https://af3-developer.fortiss.org/issues/3679

Signed-off-by: Simon Barner barner@fortiss.org

Merge request reports