Skip to content

Release : 마이페이지에서 참여중인 파티 조회#57

Merged
milowon merged 31 commits intomainfrom
develop
Jan 2, 2026
Merged

Release : 마이페이지에서 참여중인 파티 조회#57
milowon merged 31 commits intomainfrom
develop

Conversation

@milowon
Copy link
Contributor

@milowon milowon commented Jan 2, 2026

📝 상세 내용

-마이페이지에서 참여중인 파티 조회


🔗 관련 이슈

Summary by CodeRabbit

릴리스 노트

  • 새로운 기능

    • 파티 정보 수정 및 삭제 기능 추가
    • 사용자의 활성 파티 목록 조회 기능 추가
    • 사용자 위치 정보 업데이트 기능 추가
  • 개선 사항

    • 파티 목록 및 상세 조회 API 간소화
    • API 문서화 강화

✏️ Tip: You can customize this high-level summary in your review settings.

yyytir777 and others added 30 commits December 8, 2025 10:50
* feat : google login 구현 완료 (ios 구현 중)
* feat : google login 구현 완료
* fix : user hard delete
* feat : apple 로그인 구현 및 ddl-auto -> update 변경
* 약관 엔티티 생성 및 연관관계 설정

* 회원가입에 약관 저장 로직 추가

* 서버에서 idToken을 받아올 수 없으므로 단순히 이메일로 accessToken을 받아오는 test API 추가
* feat : 파티 엔티티 정의

* feat : 파티 dto

* feat : party dto 정의

* feat : party entity 정의

* feat : 파티 생성,수정,삭제, 조회

partycontroller
partyservice
partyrepository

* feat : 거리 계산 클래스

* refactor : 불필요한 코드 삭제

* refactor : token provider로 유저 아이디 추출하도록 변경

* Fix: 파티 기능 버그 수정

* docs : 파티 swagger 문서 추가
* feat : 마이페이지 활성 파티 조회

* docs : 유저 기능 swagger 문서화
@milowon milowon self-assigned this Jan 2, 2026
@milowon milowon added the enhancement New feature or request label Jan 2, 2026
@milowon milowon merged commit 4d0613a into main Jan 2, 2026
1 check was pending
@coderabbitai
Copy link

coderabbitai bot commented Jan 2, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

개요

이 PR은 사용자 마이페이지에서 참여 중인 파티를 조회할 수 있는 새로운 엔드포인트와 관련 기능들을 추가합니다. UserController에 getActiveParties 엔드포인트를 추가하고 UserService에 조회 로직을 구현하며, PartyParticipantRepository에 쿼리 메서드를 추가합니다. 동시에 PartyController의 update/delete 엔드포인트 추가, Party 엔티티 업데이트, 그리고 일부 요청 데이터 검증 규칙 변경이 포함됩니다.

시퀀스 다이어그램

sequenceDiagram
    participant Client
    participant UserController
    participant UserService
    participant PartyParticipantRepository
    participant Database
    participant PartyResponse as PartyResponse<br/>(Mapper)

    Client->>UserController: GET /api/v1/user/parties/active<br/>(`@AuthenticationPrincipal` userId)
    activate UserController
    UserController->>UserService: getActiveParties(userId)
    deactivate UserController
    
    activate UserService
    UserService->>PartyParticipantRepository: findActivePartiesByUserId<br/>(userId, partyStatus, participantStatus)
    deactivate UserService
    
    activate PartyParticipantRepository
    PartyParticipantRepository->>Database: SELECT PartyParticipant<br/>WHERE userId=? AND partyStatus=?<br/>AND participantStatus=?
    deactivate PartyParticipantRepository
    
    Database-->>PartyParticipantRepository: List<PartyParticipant>
    PartyParticipantRepository-->>UserService: List<PartyParticipant>
    
    activate UserService
    loop 각 PartyParticipant에 대해
        UserService->>PartyParticipantRepository: countByPartyIdAndStatus<br/>(partyId, status)
        activate PartyParticipantRepository
        PartyParticipantRepository->>Database: SELECT COUNT(*)<br/>WHERE partyId=? AND status=?
        Database-->>PartyParticipantRepository: currentParticipants count
        deactivate PartyParticipantRepository
        PartyParticipantRepository-->>UserService: int currentParticipants
        
        UserService->>PartyResponse: from(party, currentParticipants,<br/>isHost, participantStatus)
        activate PartyResponse
        PartyResponse-->>UserService: PartyResponse
        deactivate PartyResponse
    end
    
    UserService-->>UserController: List<PartyResponse>
    deactivate UserService
    
    activate UserController
    UserController-->>Client: ResponseEntity<List<PartyResponse>><br/>(200 OK)
    deactivate UserController
Loading

관련 PR

  • Feat : 마이페이지 참여중인 파티 조회  #50: 동일한 파일들(PartyParticipantRepository, PartyResponse, UserController의 active-parties 엔드포인트, UserService.getActiveParties)에 대해 동일한 기능을 추가하는 코드 수준의 직접적인 연관성이 있습니다.
  • Release : 파티  #43: PartyController, PartyService, PartyParticipantRepository, Party 엔티티 등 동일한 party-domain 코드를 수정하는 직접적인 코드 수준의 연관성이 있습니다.
  • Hotfix : 파티 수정, 삭제 controller 추가 #54: PartyController에 동일한 update(PATCH) 및 delete(DELETE) 엔드포인트를 추가하는 코드 수준의 직접적인 연관성이 있습니다.
✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 47556ca and 9d305f8.

📒 Files selected for processing (10)
  • .gitignore
  • src/main/java/ita/tinybite/domain/party/controller/PartyController.java
  • src/main/java/ita/tinybite/domain/party/dto/request/PartyUpdateRequest.java
  • src/main/java/ita/tinybite/domain/party/entity/Party.java
  • src/main/java/ita/tinybite/domain/party/repository/PartyParticipantRepository.java
  • src/main/java/ita/tinybite/domain/party/service/PartyService.java
  • src/main/java/ita/tinybite/domain/user/controller/UserController.java
  • src/main/java/ita/tinybite/domain/user/dto/res/PartyResponse.java
  • src/main/java/ita/tinybite/domain/user/service/UserService.java
  • src/test/java/ita/tinybite/domain/user/service/UserServiceTest.java

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 마이페이지 참여중인 파티 조회

3 participants