Skip to content

Conversation

@jjaeroong
Copy link
Collaborator

@jjaeroong jjaeroong commented Aug 25, 2025

PR 타입(하나 이상의 PR 타입을 선택해주세요)

  • 기능 추가
  • 기능 삭제
  • 버그 수정
  • 의존성, 환경 변수, 빌드 관련 코드 업데이트
  • 리팩터링

반영 브랜치

ex) feat/login -> dev

작업 내용

ex) 로그인 시, 구글 소셜 로그인 기능을 추가했습니다.

테스트 결과

ex) 베이스 브랜치에 포함되기 위한 코드는 모두 정상적으로 동작해야 합니다. 결과물에 대한 스크린샷, GIF, 혹은 라이브

Summary by CodeRabbit

  • 버그 수정

    • 포트 삭제 시 저장 목록(PotSave)이 남아있던 문제를 해결해 함께 정리되도록 개선.
    • 모집 중 포트 일괄 삭제에서 간헐적 실패나 일부만 삭제되는 현상을 방지.
    • 임시 사용자 정리 작업 중 일부 데이터가 남는 이슈를 감소.
  • 작업

    • 삭제 및 정기 정리 흐름에 트랜잭션을 적용해 데이터 일관성과 안정성을 강화.
    • 대량 삭제 및 예약 정리 처리의 신뢰성을 전반적으로 향상.

leesumin0526 and others added 6 commits August 24, 2025 12:49
* [FEAT/#423]
- 다른 사람 마이페이지 '여기서 저는요' 모달 조회

* [FEAT/#423]
- 끓인팟 요약 조회: 팟 이름이랑 팟 멤버인지 여부 (boolean) 추가

* [FEAT/#423]
- 권한 위임 API 오류 수정

* [FEAT/#423]
- 팟 멤버 정보 조회 API role 에러 수정

* [FEAT/#423]
- 팟 멤버 정보 조회 API role 에러 수정

* [Feat/#423] api 수정 (#425)

* [FEAT/#423]
- 다른 사람 마이페이지 '여기서 저는요' 모달 조회

* [FEAT/#423]
- 끓인팟 요약 조회: 팟 이름이랑 팟 멤버인지 여부 (boolean) 추가

* [FEAT/#423]
- 권한 위임 API 오류 수정

* [FEAT/#423]
- 여기서 저는요 작성 및 수정 API 버그 수정

---------

Co-authored-by: jjaeroong <[email protected]>
Co-authored-by: Hyun <[email protected]>
* [Feat/#423] api 수정 (#425)

* [FEAT/#423]
- 다른 사람 마이페이지 '여기서 저는요' 모달 조회

* [FEAT/#423]
- 끓인팟 요약 조회: 팟 이름이랑 팟 멤버인지 여부 (boolean) 추가

* [FEAT/#423]
- 권한 위임 API 오류 수정

* [FEAT/#423]
- 여기서 저는요 작성 및 수정 API 버그 수정

* [Feat/#423] 어필하기 api 수정

* [FEAT/#423]
- 다른 사람 마이페이지 '여기서 저는요' 모달 조회

* [FEAT/#423]
- 끓인팟 요약 조회: 팟 이름이랑 팟 멤버인지 여부 (boolean) 추가

* [FEAT/#423]
- 권한 위임 API 오류 수정

* [FEAT/#423]
- 팟 멤버 정보 조회 API role 에러 수정

* [FEAT/#423]
- 팟 멤버 정보 조회 API role 에러 수정

* [Feat/#423] api 수정 (#425)

* [FEAT/#423]
- 다른 사람 마이페이지 '여기서 저는요' 모달 조회

* [FEAT/#423]
- 끓인팟 요약 조회: 팟 이름이랑 팟 멤버인지 여부 (boolean) 추가

* [FEAT/#423]
- 권한 위임 API 오류 수정

* [FEAT/#423]
- 여기서 저는요 작성 및 수정 API 버그 수정

---------

Co-authored-by: jjaeroong <[email protected]>
Co-authored-by: Hyun <[email protected]>

* [FIX/#423]
- 팟 상세보기 + 지원자 목록 조회 API에 IsSaved가 반영되도록 수정

---------

Co-authored-by: jjaeroong <[email protected]>
Co-authored-by: Hyun <[email protected]>
* [FEAT/#423]
- 다른 사람 시리즈 조회 API 제작
[Fix][jjaeroong]: 팟 저장 삭제 추가
@coderabbitai
Copy link

coderabbitai bot commented Aug 25, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

레포지토리 삭제 쿼리에 트랜잭션을 추가하고, PotSave에 대한 일괄 삭제 메서드를 신설했습니다. 사용자 관련 삭제 서비스 흐름에 PotSave 정리를 선행하도록 수정했으며, 임시 사용자 정리 스케줄러 메서드에도 트랜잭션을 부여했습니다. 공개 메서드 시그니처 변경은 없습니다.

Changes

Cohort / File(s) Change Summary
Repository 트랜잭션 및 일괄 삭제 추가
src/main/java/stackpot/stackpot/pot/repository/PotRepository.java, src/main/java/stackpot/stackpot/pot/repository/PotSaveRepository.java
PotRepository: deleteByUserIdAndPotIds@Transactional 추가, JPQL 텍스트 블록으로 변경. PotSaveRepository: deleteByPotIds(List<Long>) 신설(DML, 트랜잭션), deleteByUser(User)@Modifying, @Transactional 추가.
User 서비스 삭제 흐름 보강
src/main/java/stackpot/stackpot/user/service/UserCommandServiceImpl.java
크리에이터 모집 중 Pot 삭제 흐름과 단일 Pot 삭제 흐름에 potSaveRepository.deleteByPotIds(...) 호출 추가. Pot 삭제 호출은 PotSave 정리 이후 수행.
스케줄러 트랜잭션화
src/main/java/stackpot/stackpot/user/scheduler/TempUserCleanupScheduler.java
deleteOldTempUsers()@Transactional 추가(크론 변경 없음).

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant Svc as UserCommandServiceImpl
  participant PS as PotSaveRepository
  participant PR as PotRepository

  rect rgba(230,245,255,0.6)
  note over Svc: handleCreatorPotDeletion(user)
  Svc->>Svc: 모집 중 Pot ID 수집
  Svc->>PS: deleteByPotIds(recruitingPotIds)
  PS-->>Svc: 삭제 건수 반환
  Svc->>PR: deleteByUserIdAndPotIds(userId, recruitingPotIds)
  PR-->>Svc: void
  end
Loading
sequenceDiagram
  autonumber
  participant Svc as UserCommandServiceImpl
  participant RD as RecruitmentDetailRepo
  participant PS as PotSaveRepository
  participant PR as PotRepository

  rect rgba(235,255,235,0.6)
  note over Svc: deletePotAndRelatedData(pot)
  Svc->>RD: deleteByPotId(potId)
  RD-->>Svc: void
  Svc->>PS: deleteByPotIds([potId])
  PS-->>Svc: 삭제 건수 반환
  Svc->>PR: delete(pot)
  PR-->>Svc: void
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested labels

:bug: bug

Poem

깡충깡충, 코드를 털며 나는 토끼 🍃
저장된 PotSave, 먼저 쓱쓱 비우고
그다음 Pot도 바삭바삭 정리하지요.
스케줄러도 살짝 트랜잭션 외투를 입고—
딱! 클릭 한 번에 정갈한 들판 같네.
밤하늘엔 커밋 달, 리뷰 별 반짝! ✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between c43b87f and 9c27bc1.

📒 Files selected for processing (4)
  • src/main/java/stackpot/stackpot/pot/repository/PotRepository.java (3 hunks)
  • src/main/java/stackpot/stackpot/pot/repository/PotSaveRepository.java (1 hunks)
  • src/main/java/stackpot/stackpot/user/scheduler/TempUserCleanupScheduler.java (2 hunks)
  • src/main/java/stackpot/stackpot/user/service/UserCommandServiceImpl.java (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@jjaeroong jjaeroong merged commit 29ad779 into main Aug 25, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants