Skip to content

refactor: 포트 요약 공통화 및 삭제 관련 조회 개선 - #382

Open
yoon6yo wants to merge 2 commits into
developfrom
refactor/issue-381
Open

refactor: 포트 요약 공통화 및 삭제 관련 조회 개선#382
yoon6yo wants to merge 2 commits into
developfrom
refactor/issue-381

Conversation

@yoon6yo

@yoon6yo yoon6yo commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 컨테이너 삭제/연장 이메일의 포트 요약 포맷팅 로직을 PodPortUtils로 공통화
  • 삭제 관련 흐름에서 포트 조회 N+1 쿼리를 배치 조회로 개선, FULFILLED 요청이 없을 때는 조회 자체를 스킵
  • 관련 테스트 보강 및 AlarmServiceTest의 중복 mock 헬퍼 정리

Test plan

  • ./gradlew test --tests "*AlarmServiceTest"
  • ./gradlew test --tests "*AdminUserServiceTest"

yoon6yo added 2 commits August 4, 2026 19:23
- PodPortUtils로 포트 요약 포맷 로직을 추출해 AlarmService, RequestExpiryService에서
  공통으로 사용하도록 정리
- AdminUserService.deleteUser()에서 사용자 소유 Request들의 포트를 한 번에 조회해
  N+1 쿼리 제거
- 관리자 거절/변경 요청 거절 메일 발송을 try-catch로 감싸 발송 실패가 처리 자체를
  막지 않도록 개선
- 미사용 import(Collectors) 제거

Closes #381
FULFILLED 요청이 없는 유저를 삭제할 때도 항상 포트 조회 쿼리가 나가던 것을 조건부로 건너뛰게 하고, AlarmServiceTest의 거의 동일한 mock 헬퍼 두 개를 하나로 합쳤다.
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a0e25c35-acf7-4b86-8667-8fb03948b11a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

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.

1 participant