Conversation
- 05-store-list: CATEGORIES의 CAFE를 실제 enum 값인 DESSERT로 수정 - StoreService: getNearbyStores 반경 1000m → 3000m 복원 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
fix: CAFE → DESSERT enum 수정, nearby 반경 3000m로 조정
There was a problem hiding this comment.
Code Review
This pull request updates the categories list in the k6 load test script by replacing 'CAFE' with 'DESSERT', and increases the search radius from 1000.0 to 3000.0 meters in the StoreService. The reviewer recommends defining a class-level constant for the search radius instead of hardcoding the magic number 3000.0, which is duplicated across multiple methods.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| int limitedSize = Math.min(size, 100); | ||
| return storeRepository.findNearbyWithGist( | ||
| latitude, longitude, 1000.0, | ||
| latitude, longitude, 3000.0, |
There was a problem hiding this comment.
현재 getNearbyStores 메서드에서 검색 반경으로 3000.0 미터를 직접 하드코딩하여 사용하고 있습니다. 이 값은 getNearbyPopularStoresForAi 메서드(101라인)에서도 3000이라는 값으로 중복되어 사용되고 있습니다.
이처럼 동일한 의미를 가진 매직 넘버(Magic Number)가 여러 메서드에 분산되어 있으면, 향후 검색 반경 기준을 변경할 때 일부 누락되거나 일관성이 깨질 위험이 있습니다. 클래스 상단에 상수를 정의하여 관리하는 것을 권장합니다.
추천 개선안:
// 클래스 레벨 상수로 선언
private static final double DEFAULT_RADIUS_METERS = 3000.0;
📢 기능 설명
필요시 실행결과 스크린샷 첨부
연결된 issue
연결된 issue를 자동을 닫기 위해 아래 {이슈넘버}를 입력해주세요.
close #{이슈넘버}
✅ 체크리스트