-
Notifications
You must be signed in to change notification settings - Fork 6
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-be: Dashboard 관련 API 쿼리 최적화 #718
feat-be: Dashboard 관련 API 쿼리 최적화 #718
Conversation
1727238446.045859 |
1727238448.570719 |
📌 Test Coverage Report
|
쿼리에 대한 테스트 추가하겠습니다. |
테스트 추가 완료했습니다. |
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(applicants).hasSize(3); | ||
|
||
assertAll( | ||
() -> assertThat(applicants).contains(applicant1), | ||
() -> assertThat(applicants).contains(applicant2), | ||
() -> assertThat(applicants).contains(applicant3) | ||
); | ||
} | ||
|
||
} |
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(applicants).hasSize(3); | |
assertAll( | |
() -> assertThat(applicants).contains(applicant1), | |
() -> assertThat(applicants).contains(applicant2), | |
() -> assertThat(applicants).contains(applicant3) | |
); | |
} | |
} | |
// then | |
assertThat(applicants).hasSize(3); | |
assertThat(applicants).containsExactlyInAnyOrder(applicant1, applicant2, applicant3); | |
} | |
} |
이렇게 해도 괜찮지 않을까요? ?
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.
수고하셨습니다~~잘 작동하네요!
@Query(""" | ||
SELECT new com.cruru.dashboard.domain.DashboardApplyFormDto(d, a) | ||
FROM ApplyForm a | ||
JOIN FETCH a.dashboard d | ||
JOIN FETCH d.club c | ||
WHERE c.id = :clubId | ||
""") | ||
List<DashboardApplyFormDto> findAllByClub(@Param("clubId") Long clubId); |
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.
👍🏿
…ERFORMANCE_01_05 # Conflicts: # backend/src/main/java/com/cruru/applicant/domain/repository/ApplicantRepository.java # backend/src/main/java/com/cruru/applyform/domain/repository/ApplyFormRepository.java # backend/src/test/java/com/cruru/applicant/domain/repository/ApplicantRepositoryTest.java
작업 내용
참고
관련 이슈
PR 체크리스트