Conversation
이미지 업로드 엔드포인트가 멀티파트 폼 데이터를 허용하도록 구성하여 이미지 파일 전송이 가능하도록 합니다. 또한, width() 및 height() 함수를 사용하여 이미지의 너비와 높이를 가져옵니다.
그룹 v2 HTTP 테스트를 리팩토링하여 일관된 명명 규칙과 구조를 적용했습니다. 참석, 취소, 목록 조회, 가져오기, 업데이트 작업에 대한 테스트 케이스를 업데이트했습니다. 취소 및 목록 조회 테스트에서 그룹 생성 및 관리에 HOST2를 사용합니다. 가져오기 테스트에 과거 날짜로 그룹을 생성하는 테스트 케이스를 추가했습니다. 이미지 업로드 엔드포인트를 v2로 업데이트했습니다.
|
Caution Review failedThe pull request is closed. WalkthroughGroup V2 테스트 코드를 리팩토링하여 V2 엔드포인트로 통합하고, 이미지 차원 접근자를 getter 메서드에서 속성 메서드로 업데이트합니다. 컨트롤러 엔드포인트에 명시적 멀티파트 콘텐츠 타입 지정을 추가합니다. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (8)
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. Comment |
There was a problem hiding this comment.
Pull request overview
This PR refactors the Group V2 HTTP test suite to improve consistency and maintainability. The main focus is on standardizing test naming conventions, updating test data with valid future dates, and ensuring the image upload endpoint properly accepts multipart form data.
Key changes:
- Updated image upload endpoint to explicitly declare
consumes = MediaType.MULTIPART_FORM_DATA_VALUEfor proper multipart handling - Standardized test case numbering and improved Korean comment clarity across all test files
- Updated test dates from 2026-12-10/11 to 2026-12-20 to ensure tests use dates after the reference date (2026-12-19)
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| v2-group-update.http | Corrected image filename extension from .jpeg to .jpg for consistency |
| v2-group-get.http | Added test case for past date validation, updated test numbering and dates |
| v2-group-get-list.http | Updated image upload endpoint from v1 to v2, improved test naming consistency |
| v2-group-attend.http | Restructured attend/cancel test flow with consistent variable naming using c_ prefix |
| V2-group-cancel.http | Standardized test numbering and comments, updated dates to post-reference date |
| GroupImageV2Controller.java | Added explicit multipart form data consumption declaration to upload endpoint |
| PreUploadedGroupImageRedisConfig.java | Added trailing newline for code style compliance |
| GroupImageVariantItem.java | Changed from Lombok-generated getters to explicit width()/height() methods |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "자바" | ||
| ], | ||
| "description": "MEMBER들이 참석/중복 참석 예외를 테스트하기 위한 모임입니다.", | ||
| "description": "참여 취소/중복 취소/HOST 취소 예외를 테스트하는 모임입니다.", |
There was a problem hiding this comment.
Incomplete test description: The description mentions "참여 취소/중복 취소/HOST 취소 예외를 테스트하는 모임입니다" (testing cancellation scenarios), but this group is also used to test basic attend functionality (test cases 4-1 and 4-2). The description should include that this group tests both successful attendance and subsequent cancellation scenarios.
| "description": "참여 취소/중복 취소/HOST 취소 예외를 테스트하는 모임입니다.", | |
| "description": "기본 참석 성공 케이스와 이후 참여 취소/중복 취소/HOST 취소 예외를 함께 테스트하는 모임입니다.", |
| type.width(), | ||
| type.height(), |
There was a problem hiding this comment.
Inconsistent method usage for accessing width and height. While this file now uses type.width() and type.height(), the similar file GroupImageItem.java still uses getWidth() and getHeight() for the same enum type. Since the enum GroupImageV2VariantType provides both getter methods (via Lombok @Getter) and explicit methods, the codebase should consistently use one approach. Consider either using the Lombok-generated getters everywhere or the explicit methods everywhere for consistency.
| type.width(), | |
| type.height(), | |
| type.getWidth(), | |
| type.getHeight(), |
| @@ -1,4 +1,4 @@ | |||
| ### 회원가입(HOST) | |||
| ### 0. 회원가입(HOST2) | |||
There was a problem hiding this comment.
Inconsistent filename casing: This file is named V2-group-cancel.http with an uppercase 'V', while all other test files in the same directory use lowercase (e.g., v2-group-attend.http, v2-group-get.http, v2-group-update.http). For consistency with the other test files in this refactoring, consider renaming this file to v2-group-cancel.http.
|
|
||
|
|
||
| @PostMapping("/upload") | ||
| @PostMapping(value="/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
There was a problem hiding this comment.
Inconsistent spacing around equals signs in annotation parameters. The value="/upload" has no spaces around =, while consumes = MediaType.MULTIPART_FORM_DATA_VALUE has spaces around =. For consistency, consider using the same spacing style for both parameters (either value = "/upload" or removing spaces from the consumes parameter).
| @PostMapping(value="/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) | |
| @PostMapping(value = "/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) |
|
|
||
| ### 2-2. V2 모임 생성 (업로드된 URL로 생성) | ||
|
|
||
| ### 1-2. 모임 V2 생성 (취소 테스트용 모임 / 정상 케이스: 기준일 2026-12-19 이후 날짜) |
There was a problem hiding this comment.
Misleading test description: The comment says "취소 테스트용 모임" (for cancel testing) and line 74 mentions only cancellation scenarios, but this file actually tests both attend functionality (test cases 4-1, 4-2 at lines 155-168) and cancellation functionality (test cases 5-1, 5-2, 5-3 at lines 171-192). The description should reflect that this group is used for testing both attend and cancel operations, not just cancellation.
📝 Pull Request
📌 PR 종류
해당하는 항목에 체크해주세요.
✨ 변경 내용
[FEAT] 모임 V2 테스트 리팩토링
이미지 업로드 엔드포인트가 멀티파트 폼 데이터를 허용하도록 구성하여 이미지 파일 전송이 가능하도록 합니다.
그룹 v2 HTTP 테스트를 리팩토링하여 일관된 명명 규칙과 구조를 적용했습니다.
참석, 취소, 목록 조회, 가져오기, 업데이트 작업에 대한 테스트 케이스를 업데이트했습니다.
취소 및 목록 조회 테스트에서 그룹 생성 및 관리에 HOST2를 사용합니다.
가져오기 테스트에 과거 날짜로 그룹을 생성하는 테스트 케이스를 추가했습니다.
이미지 업로드 엔드포인트를 v2로 업데이트했습니다.
🔍 관련 이슈
🧪 테스트
변경된 기능에 대한 테스트 범위 또는 테스트 결과를 작성해주세요.
🚨 확인해야 할 사항 (Checklist)
PR을 제출하기 전에 아래 항목들을 확인해주세요.
🙋 기타 참고 사항
리뷰어가 참고하면 좋을 만한 추가 설명이 있다면 적어주세요.
Summary by CodeRabbit
릴리스 노트
Refactor
Chores
✏️ Tip: You can customize this high-level summary in your review settings.