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] JWT 토큰을 통해 자신의 스케줄을 조회할 수 있는 기능 추가 #99

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

seokmyungham
Copy link
Contributor

@seokmyungham seokmyungham commented Jul 26, 2024

관련 이슈

작업 내용

  • JWT 토큰을 검증하고 식별된 사용자로 자신의 스케줄을 조회하는 기능을 추가하였습니다.

특이 사항

리뷰 요구사항 (선택)

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

github-actions bot commented Jul 26, 2024

Test Results

47 tests   47 ✅  4s ⏱️
14 suites   0 💤
14 files     0 ❌

Results for commit 82b24c8.

♻️ This comment has been updated with latest results.

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 +144 to +153
private void createAttendeeSchedule(Attendee attendee) {
List<Schedule> schedules = new ArrayList<>();
schedules.add(new Schedule(attendee, today, Timeslot.TIME_0300));
schedules.add(new Schedule(attendee, today, Timeslot.TIME_0400));
schedules.add(new Schedule(attendee, today, Timeslot.TIME_0500));
schedules.add(new Schedule(attendee, tomorrow, Timeslot.TIME_1600));
schedules.add(new Schedule(attendee, tomorrow, Timeslot.TIME_1700));
schedules.add(new Schedule(attendee, tomorrow, Timeslot.TIME_1300));
scheduleRepository.saveAll(schedules);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

깔끔하네요 굿 👍

Copy link
Contributor

@ikjo39 ikjo39 left a comment

Choose a reason for hiding this comment

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

좋은데요~

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.

기능 구현과 테스트가 깔끔하게 작성되었네요. 고생했어요 재즈~👍

Comment on lines +94 to +99
Meeting meeting = meetingRepository.findByUuid(uuid)
.orElseThrow(() -> new MomoException(MeetingErrorCode.NOT_FOUND_MEETING));

Attendee attendee = attendeeRepository.findByIdAndMeeting(attendeeId, meeting)
.orElseThrow(() -> new MomoException(AttendeeErrorCode.NOT_FOUND_ATTENDEE));

Copy link
Member

Choose a reason for hiding this comment

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

나중에 AttendeeMeeting이 일치하는지 여부는 도메인의 책임으로 넘기면 좋을 것 같아요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

추후 코드를 깔끔하게 갈고 닦아봅시다 ✈

@seokmyungham seokmyungham force-pushed the feat/97-find-my-schedule branch from 7c1da61 to 82b24c8 Compare July 26, 2024 04:21
@seokmyungham seokmyungham merged commit 8a3ead2 into develop Jul 26, 2024
10 checks passed
@ikjo39 ikjo39 deleted the feat/97-find-my-schedule branch July 31, 2024 01:07
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] JWT 토큰을 통해 자신의 스케줄을 조회할 수 있는 기능을 추가해요 :)
5 participants