Skip to content

feat: 컨테이너(신청) 하나만 삭제하는 관리자 엔드포인트 추가 - #504

Open
yoon6yo wants to merge 1 commit into
developfrom
bugfix/issue-502
Open

feat: 컨테이너(신청) 하나만 삭제하는 관리자 엔드포인트 추가#504
yoon6yo wants to merge 1 commit into
developfrom
bugfix/issue-502

Conversation

@yoon6yo

@yoon6yo yoon6yo commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 관리자 콘솔의 컨테이너 상세 삭제 버튼이 계정 전체 삭제 엔드포인트를 호출하고 있어, 한 사용자가 컨테이너를 여러 개 가진 경우 하나만 지우려 해도 매번 나머지까지 같이 삭제되던 문제의 백엔드 측 수정입니다. (프론트엔드: admin_fe#135)
  • DELETE /api/admin/requests/{requestId}를 추가해 요청 하나만 정리하도록 했습니다.
  • 같은 사용자의 다른 살아있는 신청이 남아있으면 우분투 계정(UID/GID)은 회수하지 않습니다.
  • FULFILLED가 아니거나 마이그레이션/승인 진행 중이면 409로 거부합니다.

Test plan

  • AdminUserServiceTest 전체 통과 (마지막 신청 삭제/다른 신청 남음/상태 거부/Pod 삭제 실패 케이스 포함)
  • ./gradlew test 전체 스위트 통과

Closes #502

🤖 Generated with Claude Code

관리자 콘솔의 컨테이너 상세 삭제 버튼이 계정 전체 삭제
엔드포인트(deleteUbuntuAccount)를 호출하고 있었는데, 이 엔드포인트는
그 유저네임에 딸린 살아있는 신청을 전부 순회해서 지우도록 의도된
것이라, 한 사용자가 컨테이너를 여러 개 가진 경우 하나만 지우려 해도
매번 나머지까지 같이 삭제됐다.

DELETE /api/admin/requests/{requestId}를 추가해 요청 하나만 정리하고,
같은 사용자의 다른 살아있는 신청이 남아있으면 우분투 계정(UID/GID)은
회수하지 않도록 했다. FULFILLED가 아니거나 마이그레이션/승인 진행
중이면 409로 거부한다.

Fixes #502

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: f8882392-cbbb-47ee-bb43-d67d148aba45

📥 Commits

Reviewing files that changed from the base of the PR and between ec7e5ed and b803ef6.

📒 Files selected for processing (4)
  • src/main/java/DGU_AI_LAB/admin_be/domain/requests/controller/AdminRequestController.java
  • src/main/java/DGU_AI_LAB/admin_be/domain/requests/controller/docs/AdminRequestApi.java
  • src/main/java/DGU_AI_LAB/admin_be/domain/users/service/AdminUserService.java
  • src/test/java/DGU_AI_LAB/admin_be/domain/users/service/AdminUserServiceTest.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.

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.

[ fix ] 관리자 콘솔 컨테이너 개별 삭제 버튼이 사용자의 컨테이너를 전부 삭제함

1 participant