From 47c516cf643cc559129b35673e84c44d24ec9499 Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Tue, 27 Feb 2024 15:08:38 +0300 Subject: [PATCH] EPMRPP-89420 implement organizations sort and filter --- .../java/com/epam/ta/reportportal/model/user/UserResource.java | 1 + .../ta/reportportal/ws/converter/converters/UserConverter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/epam/ta/reportportal/model/user/UserResource.java b/src/main/java/com/epam/ta/reportportal/model/user/UserResource.java index 80f549a11e..71a715f501 100644 --- a/src/main/java/com/epam/ta/reportportal/model/user/UserResource.java +++ b/src/main/java/com/epam/ta/reportportal/model/user/UserResource.java @@ -92,6 +92,7 @@ public static class AssignedProject { public static class AssignedOrganization { private Long organizationId; + private String organizationSlug; private String organizationRole; private String organizationName; diff --git a/src/main/java/com/epam/ta/reportportal/ws/converter/converters/UserConverter.java b/src/main/java/com/epam/ta/reportportal/ws/converter/converters/UserConverter.java index 9ac8cb21f2..c3040b50c7 100644 --- a/src/main/java/com/epam/ta/reportportal/ws/converter/converters/UserConverter.java +++ b/src/main/java/com/epam/ta/reportportal/ws/converter/converters/UserConverter.java @@ -82,6 +82,7 @@ private UserConverter() { UserResource.AssignedOrganization assignedOrganization = new UserResource.AssignedOrganization(); assignedOrganization.setOrganizationId(orgUser.getOrganization().getId()); assignedOrganization.setOrganizationName(orgUser.getOrganization().getName()); + assignedOrganization.setOrganizationSlug(orgUser.getOrganization().getSlug()); assignedOrganization.setOrganizationRole(orgUser.getOrganizationRole().name()); return assignedOrganization; }));