Skip to content

[FEAT] 모임 이미지 삭제 응답 형식 개선#76

Merged
LimdaeIl merged 2 commits intomainfrom
feat/image-del-response-update
Dec 11, 2025
Merged

[FEAT] 모임 이미지 삭제 응답 형식 개선#76
LimdaeIl merged 2 commits intomainfrom
feat/image-del-response-update

Conversation

@LimdaeIl
Copy link
Collaborator

@LimdaeIl LimdaeIl commented Dec 11, 2025

📝 Pull Request

📌 PR 종류

해당하는 항목에 체크해주세요.

  • 기능 추가 (Feature)
  • 버그 수정 (Fix)
  • 문서 수정 (Docs)
  • 코드 리팩터링 (Refactor)
  • 테스트 추가 (Test)
  • 기타 변경 (Chore)

✨ 변경 내용

모임 이미지 삭제 응답 형식을 NO CONTENT 204로 개선합니다.

🔍 관련 이슈

🧪 테스트

변경된 기능에 대한 테스트 범위 또는 테스트 결과를 작성해주세요.

  • 유닛 테스트 추가 / 수정
  • 통합 테스트 검증
  • 수동 테스트 완료

🚨 확인해야 할 사항 (Checklist)

PR을 제출하기 전에 아래 항목들을 확인해주세요.

  • 코드 포매팅 완료
  • 불필요한 파일/코드 제거
  • 로직 검증 완료
  • 프로젝트 빌드 성공
  • 린트/정적 분석 통과 (해당 시)

🙋 기타 참고 사항

리뷰어가 참고하면 좋을 만한 추가 설명이 있다면 적어주세요.

Summary by CodeRabbit

릴리스 노트

  • 버그 수정

    • 그룹 이미지 삭제 시 반환되는 HTTP 응답을 개선했습니다. 성공 응답이 더 효율적인 형식으로 변경됩니다.
  • 테스트

    • 테스트 데이터를 업데이트했습니다.

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

@LimdaeIl LimdaeIl self-assigned this Dec 11, 2025
Copilot AI review requested due to automatic review settings December 11, 2025 02:04
@LimdaeIl LimdaeIl added the ✨enhancement New feature or request label Dec 11, 2025
@coderabbitai
Copy link

coderabbitai bot commented Dec 11, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

모임 이미지 삭제 엔드포인트의 HTTP 응답을 200 OK에서 204 No Content로 변경하고, 테스트 픽스처 날짜를 갱신합니다.

Changes

Cohort / File(s) Summary
API 응답 형식 개선
src/main/java/team/wego/wegobackend/group/presentation/GroupImageController.java
deleteGroupImages 메서드의 응답을 200 OK(응답 본문 포함)에서 204 No Content(본문 없음)로 변경
테스트 픽스처 업데이트
src/test/http/group/group-me.http
PAST 그룹 생성 페이로드의 날짜를 2026-01-10에서 2025-01-10으로 수정 및 로깅 라인 제거

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

  • HTTP 상태 코드 변경만 포함된 단순 수정 사항
  • 메서드 로직이나 제어 흐름에 실질적인 변경 없음
  • 테스트 파일의 날짜 업데이트도 기계적인 변경

Possibly related PRs

Poem

🐰 이미지 삭제, 이제 조용히
204로 깔끔하게 말하고
응답 본문은 안녕 👋
테스트도 새로운 연도로 맞추고,
로그도 정리했어요 ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/image-del-response-update

📜 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 84cd89e and 8c527d1.

📒 Files selected for processing (2)
  • src/main/java/team/wego/wegobackend/group/presentation/GroupImageController.java (1 hunks)
  • src/test/http/group/group-me.http (1 hunks)

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.

@LimdaeIl LimdaeIl merged commit d67ea91 into main Dec 11, 2025
4 of 5 checks passed
@LimdaeIl LimdaeIl deleted the feat/image-del-response-update branch December 11, 2025 02:05
@github-project-automation github-project-automation bot moved this from Backlog to Done in WeGo-Together Backend Dec 11, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the response format for group image deletion by changing from 200 OK with an ApiResponse wrapper to 204 NO CONTENT with no response body, following RESTful best practices for successful DELETE operations.

Key Changes:

  • Modified deleteGroupImages endpoint to return 204 NO CONTENT instead of 200 OK
  • Corrected test data dates from 2026 to 2025 to properly test past meetings
  • Removed debug console.log statements from HTTP test file

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/main/java/team/wego/wegobackend/group/presentation/GroupImageController.java Changed deleteGroupImages method to return 204 NO CONTENT response using ResponseEntity.noContent().build()
src/test/http/group/group-me.http Fixed test data dates to represent past meetings correctly and removed debug console.log statements

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

return ResponseEntity
.status(HttpStatus.OK)
.body(ApiResponse.success(HttpStatus.OK.value(), null));
return ResponseEntity.noContent().build();
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type declaration ResponseEntity<ApiResponse<Void>> doesn't match the actual return statement ResponseEntity.noContent().build() which returns ResponseEntity<Void>. The method signature should be updated to ResponseEntity<Void> to match the implementation, or the implementation should wrap the response in ApiResponse to match the signature.

Suggested change
return ResponseEntity.noContent().build();
return ResponseEntity
.status(HttpStatus.NO_CONTENT)
.body(ApiResponse.success(HttpStatus.NO_CONTENT.value(), null));

Copilot uses AI. Check for mistakes.
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

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEAT] 모임 이미지 삭제 응답 형식 개선

1 participant

Comments