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

[FEAT] Feat/group service add #73

Merged
merged 3 commits into from
Nov 28, 2023
Merged

[FEAT] Feat/group service add #73

merged 3 commits into from
Nov 28, 2023

Conversation

jinjoo-lab
Copy link
Collaborator

@jinjoo-lab jinjoo-lab commented Nov 28, 2023

추가/수정한 기능 설명

  1. 자신이 소속된 그룹 정보(List) 반환
  2. RestDocs 수정 + 추가
  3. GroupServiceTest에 해당 테스트 추가

특이사항

check list

  • 모든 단위 테스트를 돌려보고 기존에 작동하던 테스트에 영향이 없는 것을 확인했나요?
  • 추가/수정사항을 설명했나요?

@jinjoo-lab jinjoo-lab requested a review from ohksj77 November 28, 2023 10:42
Copy link
Member

@ohksj77 ohksj77 left a comment

Choose a reason for hiding this comment

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

코멘트 확인해줘!!

@@ -111,4 +113,17 @@ public GroupInfoResponse inviteGroup(InviteGroupRequest inviteGroupRequest) {
public GroupInfoResponse getGroupInfoResponse(Group group) {
return groupMapper.toGroupInfo(group);
}

@Transactional
Copy link
Member

Choose a reason for hiding this comment

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

readOnly = true 해야하지 않나 싶음!

Member loginMember = authService.getMemberByJwt();

for (GroupMember groupMember : loginMember.getGroupMembers()) {
responses.add(groupMapper.toGroupInfo(groupMember.getGroup()));
Copy link
Member

Choose a reason for hiding this comment

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

이러면 group이 중복된 경우 어떻게 돼..?
그리고 뭔가 dto 조합하는 과정 전체가 mapper에 있어도 좋을듯!

Copy link
Member

Choose a reason for hiding this comment

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

그리고 stream 쓰는건 어떻게 생각해? 한 줄로 깔끔하게 나올 것 같음

@jinjoo-lab jinjoo-lab force-pushed the feat/group-service-add branch from 0b01514 to a2aa4d0 Compare November 28, 2023 13:38
@jinjoo-lab jinjoo-lab merged commit 8cfce96 into master Nov 28, 2023
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