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

[BE] 모임 필터 리스트 정렬 추가 #535

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Conversation

jimi567
Copy link
Member

@jimi567 jimi567 commented Aug 23, 2024

이슈

개발 사항

  • 누락된 정렬 기능 추가
  • 모임 회원 및 팻 갱신마다 순서가 바뀌는 현상 수정

리뷰 요청 사항 (없으면 삭제해 주세요)

전달 사항 (없으면 삭제해 주세요)

Copy link

Test Results

162 tests   162 ✅  19s ⏱️
 33 suites    0 💤
 33 files      0 ❌

Results for commit 39f9234.

@jimi567 jimi567 removed the 🐞 bug 버그 수정 label Aug 23, 2024
Copy link
Contributor

@ehtjsv2 ehtjsv2 left a comment

Choose a reason for hiding this comment

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

굳굳 이제 정렬된 리스트로 보이겠군요~

@@ -87,9 +88,11 @@ public class Club {
private Status status;

@OneToMany(mappedBy = "clubMemberId.club", orphanRemoval = true, cascade = CascadeType.ALL)
@OrderBy("createdAt")
Copy link
Contributor

Choose a reason for hiding this comment

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

default가 ASC이군요~!

Copy link
Member Author

Choose a reason for hiding this comment

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

나중에 페이징 추가하면 batchsize로 바꿀 예정이라 없앨 수 있을것 같슴당.

private Set<ClubMember> clubMembers = new HashSet<>();

@OneToMany(mappedBy = "clubPetId.club", orphanRemoval = true, cascade = CascadeType.ALL)
@OrderBy
Copy link
Contributor

Choose a reason for hiding this comment

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

Order할 element를 지정하지 않으면 primaryKey로 하는 군요~!

Copy link
Contributor

@takoyakimchi takoyakimchi left a comment

Choose a reason for hiding this comment

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

도도가 설명도 잘 달아줬네요 😄

Comment on lines 25 to 26

// hello
public ChatRoomController(
Copy link
Contributor

Choose a reason for hiding this comment

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

ㅋㅋㅋㅋ 지워줘서 고마워요 👍

Comment on lines -239 to +241
clubPets.removeAll(participatingMemberPets);
// participatingMemberPets.forEach(clubPet -> clubPet.updateClub(null));
participatingMemberPets.forEach(clubPets::remove);
Copy link
Contributor

Choose a reason for hiding this comment

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

여기 이렇게 변경한 이유가 궁금해요!!

@jimi567 jimi567 merged commit 63579ab into develop Sep 6, 2024
3 checks passed
@takoyakimchi takoyakimchi deleted the hotfix/club-readAPI branch November 4, 2024 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥 backend backend ✨ feat 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

모임 목록 조회시 최신순으로 정렬되지 않는 현상 수정
4 participants