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

[WHD-295] Feat: club payment statistics #65

Merged
merged 6 commits into from
Jan 13, 2025

Conversation

juy4844
Copy link
Contributor

@juy4844 juy4844 commented Dec 7, 2024

기능 설명

  • 동아리 결제 내역을 동아리 별로 확인할 수 있다.

작성 상세 내용

  • 동아리 결제 내역을 동아리 별로 확인할 수 있다.

관련 지라 티켓 번호

WHD-295

참고 자료

@team8901 team8901 deleted a comment from github-actions bot Dec 7, 2024
@juy4844 juy4844 requested a review from jjunhub December 7, 2024 06:33
Copy link
Member

@jjunhub jjunhub left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! 리뷰 읽어보시구 답변 부탁드립니다

@@ -40,4 +41,10 @@ public ListWrapperResponse<AdminItemHistoryResponse> getItemHistory(@PathVariabl
@RequestParam(required = false) LocalDate assignedTerm) {
return ListWrapperResponse.of(adminClubService.getItemHistory(clubId, assignedTerm));
}

@GetMapping("/{clubId}/clubPayments")
Copy link
Member

Choose a reason for hiding this comment

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

club-payments로 변경해보는건 어떨까요?
현재까지의 api 명세 방식이랑은 조금 다른 형태인 것 같아 여쭤봅니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://restfulapi.net/resource-naming/
이 사이트 참고해서 바꾸는 것도 좋은 생각인거 같습니다.

@Test
@DisplayName("동아리 별 동아리 결제 내역 확인")
void getClubPayment() {
// When
Copy link
Member

Choose a reason for hiding this comment

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

요거 LocalDate.now() 사용해서 작성하게 되면, 내년 3월 이후부터 터지는 테스트가 될 것 같습니다!
명시적으로 LocalDate.of( )를 통해서 테스트에 해당하는 날짜를 지정해보는게 좋을 것 같습니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

given과 when에 둘다 LocalDate.now() 사용해서 테스트가 터지진 않지만 명시적으로 LocalDate.of( )를 사용하면 뚜렷하게 원하는 날짜를 테스트 할 수 있을 거 같습니다.

Copy link

github-actions bot commented Dec 8, 2024

Test Coverage Report

Overall Project 70.32% -0.79% 🍏
Files changed 55.46% 🍏

File Coverage
AdminOverallService.java 100% 🍏
AdminSchoolService.java 100% 🍏
SchoolRepositoryImpl.java 90% 🍏
ItemRepositoryImpl.java 67.39% -6.52% 🍏
AdminClubService.java 42.27% -24.23% 🍏

@team8901 team8901 deleted a comment from github-actions bot Dec 9, 2024
Copy link

Test Coverage Report

Overall Project 69.68% -1.21% 🍏
Files changed 31.93%

File Coverage
AdminOverallService.java 93.64% -4.62%
AdminSchoolService.java 85.15% -8.91%
SchoolRepositoryImpl.java 80% -10%
ItemRepositoryImpl.java 60.87% -13.04%
AdminClubService.java 42.27% -24.23% 🍏

@juy4844 juy4844 merged commit 57ccfaa into develop Jan 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants