MLC-251/update session & activity history path
7 fils de conversation non résolus
7 fils de conversation non résolus
Closes MLC-251
Rapports de requête de fusion
Activité
Filtrer l'activité
9 9 @Repository 10 10 public interface SessionRepository extends JpaRepository<Session, Long> { 11 11 List<Session> findByUserId(Long userId); 12 Optional<Session> findByUserIdAndIsCurrentTrue(Long userId); 12 List<Session> findByUserIdAndIsCurrentTrue(Long userId); // Modifiée pour retourner List au lieu d'Optional changed this line in version 2 of the diff
47 47 session.setLastActive(LocalDateTime.now()); 48 48 session.setCurrent(true); 49 49 50 // Invalidate any existing current session for this user 51 sessionRepository.findByUserIdAndIsCurrentTrue(user.getId()) 52 .ifPresent(existingSession -> { 53 existingSession.setCurrent(false); 54 sessionRepository.save(existingSession); 55 }); 50 // Suppression de la logique qui invalide les sessions existantes changed this line in version 2 of the diff
47 47 session.setLastActive(LocalDateTime.now()); 48 48 session.setCurrent(true); 49 49 50 // Invalidate any existing current session for this user 51 sessionRepository.findByUserIdAndIsCurrentTrue(user.getId()) 52 .ifPresent(existingSession -> { 53 existingSession.setCurrent(false); 54 sessionRepository.save(existingSession); 55 }); 50 // Suppression de la logique qui invalide les sessions existantes 51 // Maintenant plusieurs sessions peuvent avoir isCurrent = true changed this line in version 2 of the diff
19 19 - MLC-296/Created getManagerById and getAllManagers methods using ManagerResponseDTO (with @Builder) 20 20 - MLC-253/Update the isAgentExists method. 21 21 - MLC-251/implement CRUD operations for Sessions & ActivityHistory 22 <<<<<<< HEAD changed this line in version 2 of the diff
19 19 - MLC-296/Created getManagerById and getAllManagers methods using ManagerResponseDTO (with @Builder) 20 20 - MLC-253/Update the isAgentExists method. 21 21 - MLC-251/implement CRUD operations for Sessions & ActivityHistory 22 <<<<<<< HEAD 22 23 - MLC-296/Integrated call to agency-service to fetch agency details by IDs 23 24 - MLC-296/Updated AgentService to enrich AgentResponseDTO with agency name 24 25 - MLC-296/Added agency name filtering support (case-insensitive, partial match) 25 26 - MLC-296/Fixed data type mismatch for agencyId (String → Long) 26 27 28 ======= changed this line in version 2 of the diff
19 19 - MLC-296/Created getManagerById and getAllManagers methods using ManagerResponseDTO (with @Builder) 20 20 - MLC-253/Update the isAgentExists method. 21 21 - MLC-251/implement CRUD operations for Sessions & ActivityHistory 22 <<<<<<< HEAD 22 23 - MLC-296/Integrated call to agency-service to fetch agency details by IDs 23 24 - MLC-296/Updated AgentService to enrich AgentResponseDTO with agency name 24 25 - MLC-296/Added agency name filtering support (case-insensitive, partial match) 25 26 - MLC-296/Fixed data type mismatch for agencyId (String → Long) 26 27 28 ======= 29 - MLC-251/Update Sessions & ActivityHistory Path 30 >>>>>>> 945934f (update session & activity history path) changed this line in version 2 of the diff
8 8 public interface SessionService { 9 9 SessionDTO createSession(SessionDTO sessionDTO) throws FunctionalException; 10 10 List<SessionDTO> getSessionsByUserId(Long userId) throws FunctionalException; 11 SessionDTO getCurrentSession(Long userId) throws FunctionalException; 11 List<SessionDTO> getCurrentSessions(Long userId) throws FunctionalException; // Modifiée remove this comment @anas.roukny
changed this line in version 2 of the diff
mentioned in commit 21181f75
Veuillez vous inscrire ou vous connecter pour répondre