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

[SAMBAD-228] 모임원 답변 등록 시 리스트 요청 규격 수정 #89

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

nahyeon99
Copy link
Member

@nahyeon99 nahyeon99 commented Aug 6, 2024

✔️ PR 타입(하나 이상의 PR 타입을 선택해주세요)

  • 기능 추가
  • 버그 수정
  • 의존성, 환경 변수, 빌드 관련 코드 업데이트
  • 기타 사소한 수정

📝 개요

  • [내가 작성한 모든질문의 답변 리스트 조회] 시 답변 단건 -> 목록 반환하도록 수정
스크린샷 2024-08-07 오전 1 47 09
  • [모임원 답변 등록] 시 답변 리스트 요청하도록 수정
스크린샷 2024-08-07 오전 1 47 50
  • QuestionResponse에 questionType 필드 응답 추가
스크린샷 2024-08-07 오전 1 48 31

@nahyeon99 nahyeon99 self-assigned this Aug 6, 2024
Copy link

github-actions bot commented Aug 6, 2024

Unit Test Results

4 tests   4 ✔️  0s ⏱️
1 suites  0 💤
1 files    0

Results for commit 159233c.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@kkjsw17 kkjsw17 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 50 to 55
List<Long> answerIds = request.answerIds();
List<MeetingAnswer> meetingAnswers = answerIds.stream()
.map(answerId -> answerService.getById(questionId, answerId))
.map(answer -> new MeetingAnswer(meetingQuestion, answer, loginMember))
.toList();
meetingAnswers.forEach(meetingAnswerRepository::save);
Copy link
Collaborator

Choose a reason for hiding this comment

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

원자적인 작업으로 수행될 수 있는 메서드로 빼는게 좋아보이는데, 어떻게 생각하시나요?!

Copy link
Member Author

Choose a reason for hiding this comment

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

메서드가 무거워 보이긴 하네요. 분리 했습니다! 🚀

@nahyeon99 nahyeon99 merged commit b5a3e6f into develop Aug 7, 2024
2 checks passed
@nahyeon99 nahyeon99 deleted the feature/SAMBAD-228-fix_bug_and_request_dto_type branch August 7, 2024 07:58
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