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

feat: 유저가 참여하고 있는 일정 리스트 조회 API의 반환 형식 수정 #74

Merged
merged 4 commits into from
May 23, 2023

Conversation

yujung7768903
Copy link
Member

  • 해결: 일정을 조회할 때, 날짜와 시간 반환 #57
  • 일정 조회시 반환되는 정보 추가
  • 추가된 정보: 해당 일정에 참여하는 참여자 이름 리스트, 날짜, 시간
  • 반환되는 일정은 고정 일정일수도 있고, 조율 일정일수도 있음
    • 조율 여부(dateTuneState)가 True이면 조율 일정 -> 조율하는 날짜 리스트(tuneDateList) 데이터 사용
    • 조율 여부(dateTuneState)가 False이면 고정 일정 -> 시작 날짜(fixStartDate)와 종료(fixEndDate) 사용하면 됨
  • N + 1문제 일부 개선
    • attendace에서 유저가 참여하는 일정 조회 후 일정에 참여한는 유저를 조회하는데, 일정 프록시 객체 초기화를 위해 일정 데이터만큼의 추가적인 쿼리가 발생 -> 해당 문제 해결
    • 해당 일정에 참여하고 있는 유저를 조회하기 위해 해당 프록시 객체를 초기화하는 쿼리도 추가적으로 발생함. -> 미해결

- ScheduleResponseDto에 participants(해당 일정에 참여하는 참여자 이름 리스트) 추가
* 일정 날짜도 조회 가능하도록 변경
@yujung7768903 yujung7768903 added the enhancement 기존에 있던 기능을 향상시키도록 수정 label May 23, 2023
@yujung7768903 yujung7768903 self-assigned this May 23, 2023
@yujung7768903 yujung7768903 merged commit c7870aa into main May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 기존에 있던 기능을 향상시키도록 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant