Skip to content

[#387][FEAT] 모임 약속 목록 응답에 사전답변/개인회고 작성 여부 필드 추가#386

Merged
onuyyy merged 1 commit into
devfrom
feat/meeting-list-pre-opinion-retrospective-flags
Apr 26, 2026
Merged

[#387][FEAT] 모임 약속 목록 응답에 사전답변/개인회고 작성 여부 필드 추가#386
onuyyy merged 1 commit into
devfrom
feat/meeting-list-pre-opinion-retrospective-flags

Conversation

@onuyyy
Copy link
Copy Markdown
Contributor

@onuyyy onuyyy commented Apr 26, 2026

PR 요약

  • 기능 추가

이슈 번호


주요 변경 사항

  • MeetingListItemResponse: 두 개의 boolean 필드 추가
    • hasPreOpinion: 내가 해당 약속의 사전답변을 제출했는지 여부
    • hasPersonalRetrospective: 내가 해당 약속의 개인 회고를 작성했는지 여부
  • TopicAnswerRepository: findMeetingIdsWithSubmittedAnswers 배치 조회 메서드 추가
    • 약속 ID 목록 + 유저 ID로 사전답변 제출된 약속 ID 목록을 한 번에 조회 (N+1 방지)
  • PersonalRetrospectiveRepository: findMeetingIdsWithRetrospective 배치 조회 메서드 추가
    • 약속 ID 목록 + 유저 ID로 개인 회고 작성된 약속 ID 목록을 한 번에 조회 (N+1 방지)
  • MeetingService.buildMeetingItems: 위 두 배치 조회 결과를 Set으로 변환 후 각 약속 아이템에 매핑

참고 사항

  • 분기 이동 로직 (프론트 참고)
    • hasPreOpinion = true → 사전답변 조회 페이지로 이동
    • hasPreOpinion = false → 사전답변 작성 페이지로 이동
    • hasPersonalRetrospective = true → 개인 회고 조회 페이지로 이동
    • hasPersonalRetrospective = false → 개인 회고 작성 페이지로 이동
  • 배치 쿼리 2번으로 처리하여 약속 목록 크기와 무관하게 쿼리 수 고정
  • GET /api/gatherings/{gatheringId}/meetings 응답에 적용됨

@onuyyy onuyyy changed the title feat: 모임 약속 목록 응답에 사전답변/개인회고 작성 여부 필드 추가 [#387][FEAT] 모임 약속 목록 응답에 사전답변/개인회고 작성 여부 필드 추가 Apr 26, 2026
@onuyyy onuyyy merged commit 5dfe05b into dev Apr 26, 2026
1 check passed
@onuyyy onuyyy deleted the feat/meeting-list-pre-opinion-retrospective-flags branch April 26, 2026 13:49
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.

1 participant