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] 약속 생성 결과 조회 API 구현 #52

Merged
merged 9 commits into from
Jul 24, 2024

Conversation

ikjo39
Copy link
Contributor

@ikjo39 ikjo39 commented Jul 23, 2024

관련 이슈

작업 내용

  • 참가자용 테스트 fixture 추가
  • 약속 생성 결과 조회 로직 추가
  • 관련된 테스트 추가

특이 사항

리뷰 요구사항 (선택)

리뷰 중점 사항: 리뷰어가 특히 집중해서 봐야 할 부분이 있나요?

  • 코드 컨벤션이 전체적으로 적용되었는지
  • 메서드 이름이 적절하였는지 부탁드립니당

@ikjo39 ikjo39 added 🐈‍⬛ 백엔드 백엔드 관련 이슈에요 :) 🚀 기능 기능을 개발해요 :) labels Jul 23, 2024
@ikjo39 ikjo39 added this to the 2차 데모데이 milestone Jul 23, 2024
@ikjo39 ikjo39 self-assigned this Jul 23, 2024
Copy link

github-actions bot commented Jul 23, 2024

Test Results

17 tests   17 ✅  3s ⏱️
 8 suites   0 💤
 8 files     0 ❌

Results for commit 662653a.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@seokmyungham seokmyungham left a comment

Choose a reason for hiding this comment

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

다온 고생하셨어요 🤗
전체적으로 코드가 깔끔하네요~
메서드 이름만 조금 뭔가뭔가...한데.. 이름을 뭐로 해야할지 고민하면 좋겠습니다 ㅎㅎ

Comment on lines 25 to 26
public MomoApiResponse<MeetingCompletedResponse> findCompleted(@PathVariable String uuid) {
MeetingCompletedResponse response = meetingService.findCompleted(uuid);
Copy link
Contributor

Choose a reason for hiding this comment

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

컨트롤러, 서비스 메서드 명을 Completed 라는 단어보다는 CreatedGenerated는 어떤가요?
Complete는 뭔가 약속이 최종 완료된 느낌이 드는 것 같아요.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

약속이 생성된 후 보여주어야 할 메서드니 재즈 말대로 Created가 적절해보이네요!
반영해보도록 할게요!

@ikjo39 ikjo39 requested a review from seokmyungham July 23, 2024 13:13
Copy link
Contributor

@ehBeak ehBeak left a comment

Choose a reason for hiding this comment

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

고생 많으셨어요! 굿굿 😊
변수명과 클래스명에 관해서 리뷰 조금 남겼습니다~

Comment on lines +26 to +28
public Attendee create(Meeting meeting) {
return new Attendee(meeting, new AttendeeName(name), new AttendeePassword(password), role);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

연관관계가 있는 fixture을 어떻게 만들어야 하나 궁금했는데, 이렇게 Fixture을 만들 수 있네요! 👍👍

void findCreatedResult() {
Meeting meeting = meetingRepository.save(MeetingFixture.GAME.create());

MeetingCompletedResponse result = meetingService.findCreatedResult(meeting.getUuid());
Copy link
Contributor

Choose a reason for hiding this comment

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

result라는 변수명 보다는 createdMeeting과 같이 생성이 완료된 약속이란 정보를 넣으면 좋을 것 같아요!

Comment on lines 7 to 9
public static MeetingCompletedResponse from(Meeting meeting) {
return new MeetingCompletedResponse(meeting.getUuid());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

MeetingCompletedResponse 클래스명을 수정하면 어떨까요?
제가 느끼기에 약속을 생성한 다음, 생성했다고 응답할 때 쓰이는 클래스 같아요..!
저도 지금 이름이 잘 생각이 안 나서😅 제안만 해봅니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

MeetingSharingResponse으로 변경해보았습니다 :)

Copy link
Contributor

Choose a reason for hiding this comment

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

좋네요~👍

@ikjo39 ikjo39 requested a review from ehBeak July 24, 2024 01:59
ehBeak
ehBeak previously approved these changes Jul 24, 2024
Copy link
Member

@hw0603 hw0603 left a comment

Choose a reason for hiding this comment

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

몇가지 리뷰 남겨드렸습니다😎

@@ -6,7 +6,8 @@ public enum AttendeeErrorCode implements ErrorCodeType {

INVALID_PASSWORD_LENGTH(HttpStatus.BAD_REQUEST, "비밀번호 길이는 최대 20글자까지 가능합니다."),
INVALID_UUID(HttpStatus.BAD_REQUEST, "유효하지 않은 UUID 입니다."),
PASSWORD_MISMATCHED(HttpStatus.BAD_REQUEST, "비밀번호가 일치하지 않습니다.");
PASSWORD_MISMATCHED(HttpStatus.BAD_REQUEST, "비밀번호가 일치하지 않습니다."),
INVALID_ACCESS(HttpStatus.BAD_REQUEST, "유효하지 않는 접근입니다. 관리자에게 문의해주세요.");
Copy link
Member

Choose a reason for hiding this comment

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

유효하지 '않은' 접근이 좀 더 자연스럽게 읽히는 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ENUM 명을 신경쓰지 못했네요!
수정하려 했지만 다시 보니 해당 Enum 값은 사용하고 있지 않아 삭제하였습니다!

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
Copy link
Member

Choose a reason for hiding this comment

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

어노테이션은 붙어 있는데 로깅하는 곳이 없는 것 같아요🧐

Copy link
Member

Choose a reason for hiding this comment

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

Enum 픽스쳐 기가 막히네요👍🏻

Copy link
Contributor

@seunghye218 seunghye218 left a comment

Choose a reason for hiding this comment

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

픽스쳐 활용이 좋네요. 테스트 작성할 때 참고할게요 👍

@ikjo39 ikjo39 merged commit bd766f0 into develop Jul 24, 2024
6 checks passed
@ikjo39 ikjo39 deleted the feat/50-get-completed-meeting-info branch July 24, 2024 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐈‍⬛ 백엔드 백엔드 관련 이슈에요 :) 🚀 기능 기능을 개발해요 :)
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BE] 약속 생성 결과 조회 API를 구현해요:)
5 participants