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

  • 버그 수정
    • 포트 삭제 시 연관 저장 내역이 함께 정리되어 잔여 데이터로 인한 화면/알림 오류가 발생하지 않습니다.
    • 임시 사용자 정리 작업이 트랜잭션으로 안전하게 수행되어 간헐적 실패가 감소합니다.
  • 작업
    • 대량 삭제 처리와 트랜잭션 적용으로 삭제 작업의 일관성과 성능을 개선했습니다.

jjaeroong and others added 8 commits August 19, 2025 04:11
…과 함께 응답 및 팟 이름 수정 API 변경

[Refactor][jjaeroong]: 팟 시작 날짜/ 종료 날짜 형식 수정(모집 중/끓인 팟),유저 닉네임 생성 시 씨앗과 함께 응답 및 팟 이름 수정 API 변경
* [FEAT/#423]
- 다른 사람 마이페이지 '여기서 저는요' 모달 조회

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

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

* [FEAT/#423]
- 여기서 저는요 작성 및 수정 API 버그 수정
[MERGE] dev->main 병합
* [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 수정 (#433)

* [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]>

* [Bug/#432] 팟 상세보기 + 지원자 조회 API 수정 (#435)

* [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]>

---------

Co-authored-by: jjaeroong <[email protected]>
Co-authored-by: Hyun <[email protected]>
* [Feat/#423] 어필하기 api 수정 (#433)

* [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]>

* [Bug/#432] 팟 상세보기 + 지원자 조회 API 수정 (#435)

* [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/#432] 다른 사람 시리즈 조회 API 제작 (#437)

* [FEAT/#423]
- 다른 사람 시리즈 조회 API 제작

---------

Co-authored-by: jjaeroong <[email protected]>
Co-authored-by: Hyun <[email protected]>
@coderabbitai
Copy link

coderabbitai bot commented Aug 25, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Pot and user-related deletion flows were adjusted. Repositories gained transactional, modifying JPQL delete methods (including a new bulk PotSave deletion). UserCommandServiceImpl now deletes PotSave records before pot removals. A temp-user cleanup scheduler method is wrapped in a transaction. No public APIs changed beyond annotations.

Changes

Cohort / File(s) Summary
Pot repository transactional delete
src/main/java/stackpot/stackpot/pot/repository/PotRepository.java
Converted deleteByUserIdAndPotIds to a multiline JPQL @query with @Modifying and @transactional; added Transactional import; removed prior single-line query version.
PotSave bulk deletions
src/main/java/stackpot/stackpot/pot/repository/PotSaveRepository.java
Added int deleteByPotIds(List) with JPQL bulk delete, @Modifying, @transactional; annotated existing deleteByUser(User) with @Modifying and @transactional.
Transactional scheduler
src/main/java/stackpot/stackpot/user/scheduler/TempUserCleanupScheduler.java
Added @transactional to deleteOldTempUsers(); imported Transactional.
Service-layer cleanup before pot deletion
src/main/java/stackpot/stackpot/user/service/UserCommandServiceImpl.java
Before pot deletions, now deletes related PotSave entries: bulk by recruitingPotIds in handleCreatorPotDeletion, and per-pot in deletePotAndRelatedData.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor U as UserCommandServiceImpl
  participant PS as PotSaveRepository
  participant PR as PotRepository

  rect rgba(220,240,255,0.5)
  note over U: handleCreatorPotDeletion(user)
  U->>U: collect recruitingPotIds
  U->>PS: deleteByPotIds(recruitingPotIds)
  U->>PR: deleteByUserIdAndPotIds(userId, recruitingPotIds)
  end

  rect rgba(235,255,235,0.5)
  note over U: deletePotAndRelatedData(pot)
  U->>PS: deleteByPotIds([potId])
  U->>PR: deleteByUserIdAndPotIds(ownerId, [potId]) or equivalent pot delete
  end
Loading
sequenceDiagram
  autonumber
  participant S as TempUserCleanupScheduler
  participant TX as Transaction (Spring)
  participant US as UserService/Repo

  rect rgba(255,245,220,0.5)
  S->>TX: @Transactional start
  S->>US: deleteOldTempUsers()
  US-->>S: completed
  S->>TX: commit/rollback
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

:fire: fix

Poem

작은 냄비들 톡톡, 저장도 툭툭 지워져요 🍲
토끼는 수염을 고르고 트랜잭션을 묶지요.
모집 냄비 훑고, 저장 흔적 싹—쓱!
스케줄러는 밤새 깔끔쓱싹.
삐걱임 없이, 딸깍! 코드가 춤춰요.
(:=^·^=)ノ

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 369ec46.

📒 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 refactor/#404-withdrawal

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 changed the base branch from main to dev August 25, 2025 05:17
@jjaeroong jjaeroong merged commit 9c27bc1 into dev Aug 25, 2025
1 of 2 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Sep 8, 2025
5 tasks
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.

4 participants