[Fix/Refactor] Facility API distanceM 버그 수정 및 facilityType 타입 통일#79
Merged
[Fix/Refactor] Facility API distanceM 버그 수정 및 facilityType 타입 통일#79
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughFacility API 응답 DTO의 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip You can disable poems in the walkthrough.Disable the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣Issue Number
📝 요약(Summary)
구장 마커 API 응답에서
distanceM이 항상 0으로 반환되는 버그를 수정하고,Facility 응답 DTO의
facilityType필드 타입을String에서FacilityTypeenum으로 통일했습니다.버그 원인:
FacilityMapper.toMarkerResponse()에서.distanceM()매핑 호출이 누락되어 기본값 0이 반환됨.타입 통일 이유:
FacilityNearResponse,FacilityMarkerResponse는String을 사용하고FacilityResponse만FacilityTypeenum을 사용하는 불일치상태였음. 클라이언트에서 일관된 타입으로 응답을 받을 수 있도록 통일.
🛠️PR 유형
어떤 변경 사항이 있나요?
📸스크린샷 (선택)
💬 공유사항 to 리뷰어
FacilityMapper.toMarkerResponse()에.distanceM((int) Math.round(p.getDistanceM()))한 줄 추가로 버그 수정FacilityNearResponse,FacilityMarkerResponse의facilityType필드를FacilityTypeenum으로 변경하고, Mapper에서FacilityType.valueOf()로 변환 처리✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.
Summary by CodeRabbit
변경 사항