Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] 체크리스트 지하철 정보 저장 시 위도, 경도가 NULL 인 경우도 허용한다. #1065

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

tkdgur0906
Copy link
Contributor

❗ Issue

✨ 구현한 기능

  • 경도, 위도 null 검증

📢 논의하고 싶은 내용

🎸 기타

Copy link
Contributor

@JINU-CHANG JINU-CHANG left a comment

Choose a reason for hiding this comment

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

카피 수고많으셨어요 👍
바꿀 때 수정 API도 함께 변경해줘야 될 것 같아요~

Comment on lines +42 to +44
if (latitude == null || longitude == null) {
return;
}
Copy link
Contributor

@JINU-CHANG JINU-CHANG Dec 10, 2024

Choose a reason for hiding this comment

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

수정 API에서는 여기서 null로 저장되어야하지 않을까요?? 지금은 그냥 return되고 있어 수정사항이 반영되지 않을 것 같아요!

Copy link
Contributor Author

@tkdgur0906 tkdgur0906 Dec 10, 2024

Choose a reason for hiding this comment

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

확인해봤는데 체크리스트 수정할 때 updateChecklistByIdV1 메서드에서 이미 room 정보를 통째로 수정해서 위도, 경도가 변경된 값으로 초기화 되더라고요! 그래서 처리하지 않아도 될 것 같습니다!

Copy link
Contributor

@JINU-CHANG JINU-CHANG Dec 10, 2024

Choose a reason for hiding this comment

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

room 정보말고 지하철 정보를 말한 거였어요! checklist_station은 그대로이지 않나요 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

checklistStation도 다시 새로운 지하철 정보 저장하기 전에 32번째 줄에 checklistStationRepository.deleteAllByChecklistId(checklist.getId()) 호출해 초기화해줘서
새로운 지하철 정보로 바뀌어서 문제 없을 것 같습니다!

Copy link
Contributor

Choose a reason for hiding this comment

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

테스트 결과를 잘못보고 있엇네요,,ㅎㅎ 고생하셨습니다 👍

@JINU-CHANG JINU-CHANG merged commit ef4d521 into dev-be Dec 10, 2024
2 checks passed
@JINU-CHANG JINU-CHANG deleted the feat/1064-station-empty branch December 10, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants