Skip to content

[SCRUM-259] 송정동 행정구역 분류 로직 수정 (#113)#115

Merged
moonxxpower merged 6 commits intodevelopfrom
SCRUM-259-송정동-행정구역-분류-로직-수정
Aug 29, 2025

Hidden character warning

The head ref may contain hidden characters: "SCRUM-259-\uc1a1\uc815\ub3d9-\ud589\uc815\uad6c\uc5ed-\ubd84\ub958-\ub85c\uc9c1-\uc218\uc815"
Merged

[SCRUM-259] 송정동 행정구역 분류 로직 수정 (#113)#115
moonxxpower merged 6 commits intodevelopfrom
SCRUM-259-송정동-행정구역-분류-로직-수정

Conversation

@moonxxpower
Copy link
Member

✏️ 연관 이슈

#113

⛳ 작업 내용

  • 송정동 행정구역 분류 로직 수정
  • 카카오 지도 API 오류 시 Area, Theme ETC로 분류되게 수정

💬리뷰 요구사항

  • 두루누비 동기화 API의 경우, 두루누비 API 측에서 행정구역을 제공함으로 Theme 설정 시 무의미하게 카카오 지도 API만 호출될거 같아 수정하지 않았습니다. 혹시 필요하다고 생각하시면 수정하겠습니다!
  • 송정동 행정구역 분류 로직 수정의 경우, extractArea에서 조건문에 구 단위 체크만 수정했는데, 혹시 제가 놓친 부분이 있다면 말씀해주세요!

📍 참고사항

  • 팀 논의에 따라 Area, Theme Enum을 ETC로 분류하면서 SpotCategoryUNKNOWN 대신 ETC로 수정했습니다.

Area.WESTERN_NAKDONGRIVER으로 분류되어야할 "강서구 송정동"이 Area.SONGJEONG_GIJANG로 분류되는 오류를 수정하기 위해 extractArea 메서드의 조건문에 구 단위 체크("해운대구")를 추가했습니다.
)

Area, Theme Enum의 UNKNOWN을 ETC로 변경하고, 통일성을 위해 SpotCategory Enum도 변경했습니다. 이에 따라 DB Schema의 변경이 필요합니다.
카카오 지도 API에서 주소 정보를 받아오지 못하는 등의 오류가 발생했을 때, 서비스를 중단하지 않고 Area, Theme를 ETC로 분류하여 처리하도록 개선했습니다.
@moonxxpower moonxxpower requested a review from ssggii August 23, 2025 17:41
@moonxxpower moonxxpower self-assigned this Aug 23, 2025
Copy link
Contributor

@ssggii ssggii left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! 코멘트로 제안드린 부분 확인 부탁드립니다:)

두루누비 코스 생성 로직에서 Area, Theme 할당하는 부분도 수정이 필요해보이는데, 수현님이 현재 피드백 바탕으로 코드 수정해주시면 제가 이어서 수정 커밋 올리겠습니다!

#113)

기존에 Map<String, String>으로 구성했던 주소 정보를 타입 안정성, 확장성, 불변성, 가독성 등의 이유로 Record로 변경했습니다.
추가적으로 KakaoMapService가 주소 관련 모든 기능을 담당하도록 기존에 CourseDataService에 있던 extractDistrictNameAndDongName를 kakaoMapService로 이동했습니다.
이 과정에서 textToNull 헬퍼 메서드를 추가해 가독성을 높였습니다.
Area, Theme의 결정 로직을 기존 CourseDataService에서 Enum으로 이동하여 코드 재사용성을 향상시켰습니다.
@ssggii ssggii added this to the #6-sprint milestone Aug 29, 2025
@ssggii ssggii moved this to In Progress in Runchuck-러닝한다이 Aug 29, 2025
…me 메서드로 통일 (#113)

두루누비 코스의 Area와 Theme 결정 방식을 공통 메서드(extractArea, extractTheme)를 사용하도록 변경했습니다. 지역 및 테마 처리 경로를 통일하여 코드의 일관성을 높이고, 향후 로직 확장이 용이하도록 개선했습니다.
@moonxxpower moonxxpower merged commit ffea1ad into develop Aug 29, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Runchuck-러닝한다이 Aug 29, 2025
@moonxxpower moonxxpower deleted the SCRUM-259-송정동-행정구역-분류-로직-수정 branch August 29, 2025 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants