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

[Feature/38] 모임 일정 전체 조회 API 추가 #43

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

galug
Copy link
Contributor

@galug galug commented Mar 11, 2024

Type of change

  • Feature : 새로운 기능 추가
  • Bug fix : 버그 수정
  • Refactor : 코드 리팩토링 작업
  • Document : 문서작업
  • Test : 테스트 코드 작성 및 테스트 작업
  • Style : 코드 스타일 및 포맷팅 작업
  • CI/CD : CI/CD 작업 수정
  • Chore : 패키지 매니저, 라이브러리 업데이트 등의 작업

PR Desciption

변경 사항 설명

  • MoimScheduleAndUserRepositoryImpl.java
    • querydsl 활용해서 기존 로직 재사용 가능하게 변경
  • MoimScheduleResponseConverter.java
    • toMoimScheduleUserDto 메서드서 버그 발견 및 수정
  • 대부분 월간 모음 스케줄 조회를 그대로 재활용하여 코드를 생성했습니다.

Requirements for Reviewer

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요
ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

PR Log

PR 작업하면서 고민했던 내용, 해결한 내용, 고민 중인 내용 등

새롭게 배운 것

  • 없음

고민 중인 사항

  • Moim_USER_COLOR 에 대한 부여를 현재 총 모임원의 총 수를 통해서 부여함
  • 이 경우 모임원이 탈퇴하고 다시금 들어올 경우 동일한 color를 부여받는 모임원이 생김
  • 전체 모임 조회 시 다른 moimScheulde 에 대한 moimId를 노출하게 됨
    • 모임에 소속되지 않은 유저가 모임 스케줄을 추가하는 경우에 대한 검증 처리가 필요할 듯함

첨부 자료

관련 이슈

<body>
- MoimScheduleAndUserRepositoryImpl.java
  - querydsl 활용해서 기존 로직 재사용 가능하게 변경
- MoimScheduleResponseConverter.java
  - toMoimScheduleUserDto 메서드서 버그 발견 및 수정
- 대부분 월간 모음 스케줄 조회를 그대로 재활용하여 코드를 생성했습니다.

<footer>
- 관련: #38
@galug galug added the ✨ feature 기능 구현 관련 label Mar 11, 2024
@galug galug requested review from luke0408 and hyeonji91 March 11, 2024 02:04
@galug galug self-assigned this Mar 11, 2024
@galug galug requested a review from a team as a code owner March 11, 2024 02:04
@galug galug linked an issue Mar 11, 2024 that may be closed by this pull request
2 tasks
Copy link
Member

@luke0408 luke0408 left a comment

Choose a reason for hiding this comment

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

👍 수정할 부분은 딱히 없어 보입니다! 수고하셨어요 ㅎㅎ

* TODO
* ISSUE 설명: Moim_USER_COLOR 에 대한 부여를 현재 총 모임원의 index를 통해서 부여함
* 이 경우 모임원이 탈퇴하고 다시금 들어올 경우 동일한 color를 부여받는 모임원이 생김
*/
Copy link
Member

Choose a reason for hiding this comment

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

❓ 이후에 수정하시기 위해서 작성한 TODO가 맞을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

넵 맞습니다

@@ -170,15 +170,28 @@ public void modifyMoimScheduleAlarm(MoimScheduleRequest.PostMoimScheduleAlarmDto
}

@Transactional(readOnly = true)
public List<MoimScheduleResponse.MoimScheduleDto> getMoimSchedules(Long moimId,
public List<MoimScheduleResponse.MoimScheduleDto> getMonthMoimSchedules(Long moimId,
Copy link
Member

Choose a reason for hiding this comment

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

👍 앞에 Month를 붙여 더욱 직관적인 네이밍이 된것 같아서 좋습니다!

* 넘기기는 했는데 MoimMemo에 가까운 로직이라 이곳으로 들어오는게 맞나 싶네요?
* 이 부분에 대해서는 MoimScheduleAndUser를 반환해서
* 우선 MoimScheduleAndUserRepository로
* 넘기기는 했는데 MoimMemo에 가까운 로직이라 이곳으로 들어오는게 맞나 싶네요?
Copy link
Member

Choose a reason for hiding this comment

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

💬 개인적인 의견으로는 Repository의 메서드는 해당 메서드를 사용하는 service 가 누구인가에 상관없이 데이터를 다루는 주체가 누구인가에 따라 달라진다고 생각합니다. 그리고 저 같은 경우는 그 주체가 from 절의 table이 된다고 생각하는 편이구요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

의견 감사합니다. 항상 참고가 되네요 👍

@luke0408 luke0408 merged commit b058c72 into main Mar 11, 2024
4 checks passed
@luke0408 luke0408 deleted the feature/38 branch March 26, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature 기능 구현 관련
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] 모임 일정 전체 조회 API 추가
2 participants