From 6868d1571838617c39552f76f6b8a326f0da8c3f Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Mon, 30 Sep 2024 15:48:48 +0200 Subject: [PATCH] remove targetUnixUser property from ImportHostingAssets --- .../hsadminng/hs/migration/ImportHostingAssets.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/migration/ImportHostingAssets.java b/src/test/java/net/hostsharing/hsadminng/hs/migration/ImportHostingAssets.java index 634ba207..904149b4 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/migration/ImportHostingAssets.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/migration/ImportHostingAssets.java @@ -1680,18 +1680,13 @@ public class ImportHostingAssets extends BaseOfficeDataImport { final var relatedProject = domainSetup.getSubHostingAssets().stream() .map(ha -> ha.getAssignedToAsset() != null ? ha.getAssignedToAsset().getRelatedProject() : null) .findAny().orElseThrow(); - final var targetUnixUser = domainSetup.getSubHostingAssets().stream() - .filter(subAsset -> subAsset.getType() == DOMAIN_HTTP_SETUP) - .map(domainHttpSetup -> domainHttpSetup.getAssignedToAsset().getIdentifier()) - .findAny().orElse(null); final var bookingItem = HsBookingItemRealEntity.builder() .type(HsBookingItemType.DOMAIN_SETUP) .caption("BI " + domainSetup.getIdentifier()) .project((HsBookingProjectRealEntity) relatedProject) //.validity(toPostgresDateRange(created, cancelled)) .resources(Map.ofEntries( - entry("domainName", domainSetup.getIdentifier()), - entry("targetUnixUser", targetUnixUser) + entry("domainName", domainSetup.getIdentifier()) )) .build(); domainSetup.setBookingItem(bookingItem);