From 8087e574b3774f7718f26133181bfdeeb76bca42 Mon Sep 17 00:00:00 2001 From: Yves Peter Date: Thu, 27 Jan 2022 15:57:25 +0100 Subject: [PATCH] return all consumed relations on /resourceGroups/{resourceGroupId}/releases/{releaseId} --- .../itc/mobiliar/rest/resources/ResourceGroupsRest.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/AMW_rest/src/main/java/ch/mobi/itc/mobiliar/rest/resources/ResourceGroupsRest.java b/AMW_rest/src/main/java/ch/mobi/itc/mobiliar/rest/resources/ResourceGroupsRest.java index 1614c4f29..cc3a6c69c 100644 --- a/AMW_rest/src/main/java/ch/mobi/itc/mobiliar/rest/resources/ResourceGroupsRest.java +++ b/AMW_rest/src/main/java/ch/mobi/itc/mobiliar/rest/resources/ResourceGroupsRest.java @@ -292,13 +292,9 @@ public ResourceDTO getResourceRelationListForRelease(@PathParam("resourceGroupId if (resource == null) { return null; } - List uniqueNames = new ArrayList<>(); List resourceRelationDTOs = new ArrayList<>(); for (ConsumedResourceRelationEntity consumedResourceRelationEntity : resource.getConsumedMasterRelations()) { - if (!uniqueNames.contains(consumedResourceRelationEntity.getSlaveResource().getName())) { - uniqueNames.add(consumedResourceRelationEntity.getSlaveResource().getName()); - resourceRelationDTOs.add(new ResourceRelationDTO(consumedResourceRelationEntity)); - } + resourceRelationDTOs.add(new ResourceRelationDTO(consumedResourceRelationEntity)); } return new ResourceDTO(resource, resourceRelationDTOs); }