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

[#145 ] 책장 좋아요 개수 추가 & 내가 좋아요한 책장 list 조회 #166

Merged
merged 8 commits into from
May 4, 2023

Conversation

youngjijang
Copy link
Collaborator

🍀 목적

책장 list 응답에 좋아요 개수 추가
내가 좋아요한 책장 list api 추가

#145

@youngjijang youngjijang requested review from tinajeong and devYSK May 3, 2023 05:35
@youngjijang youngjijang self-assigned this May 3, 2023
@youngjijang youngjijang added ✨ feat 새로운 기능에 추가에 대한 커밋 ✅ test 테스트 코드 수정에 대한 커밋 labels May 3, 2023
@github-actions
Copy link

github-actions bot commented May 3, 2023

Test Results

  58 files    58 suites   36s ⏱️
418 tests 418 ✔️ 0 💤 0
434 runs  434 ✔️ 0 💤 0

Results for commit 1d09d3b.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented May 3, 2023

Jacoco Test Coverage Reports

File Coverage [93.98%] 🍏
BookshelfController.java 100% 🍏
DefaultBookshelfService.java 96.42% 🍏
BookshelfSupportImpl.java 92.33% 🍏
Total Project Coverage 90.22% 🍏

@youngjijang
Copy link
Collaborator Author

repository test case 추가해서 BookshelfSupportImpl.java 커버리지 92%까지 올렸습니다~

Long likeCount, Long userId, String username,
String userNickname, String userProfileImage, JobGroup jobGroup, JobGroup.JobName jobName, int order) {
Long likeCount, boolean isLiked, Long userId, String username,
String userNickname, String userProfileImage, JobGroup jobGroup, JobGroup.JobName jobName, Integer order) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

order를 boxing한 형태로 변경하신 것 좋네요! 현재는 원시타입인 isLiked도 통일하면 좋을것 같습니다.

user.profileImage.as("userProfileImage"),
job.jobGroup, job.jobName, job.sortOrder
)
public Optional<BookShelfDetailResponse> findByIdWithUserAndJob(Long ownerId, Long userId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

메소드 이름이 findByIdWithUserAndJob인데, 실제로는 ownerId와 userId를 기반으로 여러 테이블에서 데이터를 가져오는 메소드로 보여집니다! 메소드 이름을 더 명확하게 지정하는 것이 좋을것 같아요.

@youngjijang youngjijang merged commit 49e81dc into develop May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feat 새로운 기능에 추가에 대한 커밋 ✅ test 테스트 코드 수정에 대한 커밋
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants