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] 같은 스터디 진행 이후 다른 멤버 스터디 기록이 조회되지 않는 오류 수정 #758

Merged

Conversation

MoonJeWoong
Copy link
Collaborator

관련 이슈

구현 기능 및 변경 사항

  • 같은 스터디 참여 인원 간에는 서로 스터디 기록 조회가 가능해야 하는데 과거 리팩토링 PR에서 검증 부분이 잘못 수정된 부분이 있었습니다. 이를 수정했습니다.
  • 스터디에 참여하지 않은 인원이 스터디 참여 인원의 기록을 조회하려고 하면 권한 오류가 발생하도록 했습니다.
  • 같은 실수가 반복되지 않도록 스터디 기록 조회 관련 service 테스트를 추가했습니다.

Copy link
Collaborator

@woosung1223 woosung1223 left a comment

Choose a reason for hiding this comment

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

안녕하세요!

하루스터디 PR 검토하는거 되게 오랜만이네요 ㅋㅋ

저도 덕분에 복기하면서 리뷰할 수 있었습니다!

고생하셨고, 혹시 공유해야 할 사안이나 나눠서 처리해야 하는 작업이 있다면 언제든 말씀해주세요~

}
}

private boolean isMemberIncludedInParticipants(Member member, List<Participant> participants) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

멤버가 참여자가 아니라면 true를 반환하는 메소드네요!

메소드명이 isMemberNotIncludedInParticipants여야 할 것 같은데, 아마 오타가 난 것 같습니다!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

이래서 코드리뷰 하는거죠 ㅎㅎ 감사합니다 테오~ 😄

// then
assertThat(contentsWithFilter.content().size()).isEqualTo(1);
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

테스트까지.. 💯

@MoonJeWoong MoonJeWoong merged commit dc2d4ba into develop Feb 28, 2024
3 checks passed
@MoonJeWoong MoonJeWoong deleted the be/feature/757-fix-find-other-participants-in-study branch February 28, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드 작업 feature
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[BE] 같은 스터디 진행 이후 다른 멤버 스터디 기록이 조회되지 않는 오류 수정
2 participants