From 9c3209d16c6c6e3cdd740ecbbcdf491652b44e99 Mon Sep 17 00:00:00 2001 From: siarhei_hrabko Date: Fri, 15 Nov 2024 22:24:07 +0300 Subject: [PATCH] EPMRPP-96226 do not generate default project --- .../auth/event/UiAuthenticationSuccessEventHandler.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java b/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java index 8633b3c7..474ce217 100644 --- a/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java +++ b/src/main/java/com/epam/reportportal/auth/event/UiAuthenticationSuccessEventHandler.java @@ -63,12 +63,14 @@ public void onApplicationEvent(UiUserSignedInEvent event) { } userRepository.updateLastLoginDate(Instant.ofEpochMilli(event.getTimestamp()), username); + /* TODO: Do not generate personal project for now. Waiting for requirements if (MapUtils.isEmpty(acquireUser(event.getAuthentication()).getOrganizationDetails())) { User user = userRepository.findByLogin(username) .orElseThrow(() -> new ReportPortalException(ErrorType.USER_NOT_FOUND, username)); Project project = personalProjectService.generatePersonalProject(user); user.getProjects().addAll(project.getUsers()); } + */ } private ReportPortalUser acquireUser(Authentication authentication) {