-
Notifications
You must be signed in to change notification settings - Fork 3
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] feat: 놀이터 참여하기 #637
[BE] feat: 놀이터 참여하기 #637
Conversation
…course-teams/2024-friendogly into feature/be-playground-post
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿굿
|
||
// then | ||
assertThat(isPlaygroundMemberPresent).isFalse(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// then | |
assertThat(isPlaygroundMemberPresent).isFalse(); | |
} | |
// then | |
assertThat(playgroundMemberRepository.findById(playgroundMember.getId())).isEmpty(); | |
} |
double latitude299mFromA = GeoCalculator.calculateLatitudeOffset(latitudeA, 299); | ||
double latitude299mFromA = GeoCalculator.calculateLatitudeOffset(latitudeA, 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
299 해도 안터지네용
|
||
@DisplayName("놀이터에 참여한 멤벙 메세지 수정") | ||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
귀여운 오타 발견
1, | ||
List.of("url1", "url2", "url3") | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
문서화가 좀 더 친절하면 좋을듯해요!!
URL 형식으로 넣어주면 어떨까요??
private static final int MAX_PET_IMAGE_COUNT = 5; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static final int MAX_PET_IMAGE_COUNT = 5; | |
private static final int MAX_PET_PREVIEW_IMAGE_COUNT = 5; | |
상수이름 제안입니다
public record UpdatePlaygroundMemberMessageRequest( | ||
String message //todo: 검증추가 | ||
) { | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
검증 추가 하는건가요 ?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
굿 굿 확인했습니다.
petImages = cutPeImagesCount(petImages); | ||
petImages = cutPetImagesCount(petImages); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오타 수정 굿
if (!isInsideBoundary) { | ||
playgroundMember.updateExitTime(LocalDateTime.now()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
사용자가 놀이터에 도착한 이력이 없더라도 놀이터 범위 밖에서 update API를 호출하면 exitTime이 갱신되네요!
지금은 문제가 없겠지만, 추후에 exitTime으로 무언가 처리하는 로직이 추가된다면 문제가 생길 수도 있다는걸 인지하는게 좋겠어요.
playgroundPetDetails.sort(Comparator | ||
.comparing(PlaygroundPetDetail::isMine).reversed() | ||
.thenComparing(Comparator.comparing(PlaygroundPetDetail::isArrival).reversed()) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋네요! 그런데 두개의 Comparator의 개행을 맞춰주면 더 가독성이 올라갈 것 같아요~
petImages = cutPetImagesCount(petImages); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
petImages = cutPetImagesCount(petImages); | |
} | |
} | |
petImages = cutPetImagesCount(petImages); |
이슈
개발 사항