Skip to content

dev -> prd#476

Merged
mikekks merged 9 commits into
mainfrom
develop
Jun 23, 2026
Merged

dev -> prd#476
mikekks merged 9 commits into
mainfrom
develop

Conversation

@mikekks

@mikekks mikekks commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

mikekks and others added 9 commits June 17, 2026 20:22
기존 코드는 답변 제출 시 현재 팀 멤버 수와 DONE 답변 수를 == 비교했는데,
회고 진행 중 멤버가 탈퇴/합류하면 수치가 맞지 않아 AI 분석이 영원히 트리거되지 않는 버그가 있었다.

- Retrospect 엔티티에 targetMemberCount 필드 추가 (회고 생성 시점 멤버 수 스냅샷)
- 회고 생성 시 현재 스페이스 멤버 수를 targetMemberCount로 저장
- 분석 트리거 조건을 == 에서 >= 로 변경하고 targetMemberCount 기준으로 비교
- null인 기존 데이터는 현재 팀 멤버 수로 폴백 (기존 동작 유지)

배포 전 DB 마이그레이션 필요:
  ALTER TABLE retrospect ADD COLUMN target_member_count INT NULL;

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PROCEEDING 상태 회고의 totalCount를 현재 팀원 수 대신
생성 시점에 스냅샷된 targetMemberCount 기준으로 표시.
null인 경우(기존 데이터)는 현재 팀원 수로 폴백.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
팀 분석 후 팀 실행목표(TEAM)를 생성하는 것과 동일하게,
개인 분석 후 각 멤버의 IMPROVEMENT 항목을 PERSONAL 타입
실행목표로 자동 저장하도록 추가.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
DONE 상태 회고에서 getTeamMemberCountBefore(deadline)가
멤버 가입일 기준으로 필터링해 0이 되는 문제 수정.
targetMemberCount가 있으면 상태와 무관하게 항상 우선 사용하고,
null인 기존 데이터만 이전 로직으로 폴백.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
답변이 0개인 상태에서 분석을 요청하면 AI 할루시네이션이 발생하는 문제 수정.
DONE 답변이 없으면 OpenAI 호출 없이 analysisStatus만 DONE으로 변경.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
closeRetrospect 호출 시 DONE 답변이 하나도 없으면
400 에러를 반환하여 할루시네이션 방지.
RetrospectExceptionType에 NO_ANSWERS_TO_CLOSE 추가.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
deadline 초과로 자동 마감되는 회고에 DONE 답변이 없으면
AIAnalyzeStartEvent를 발행하지 않고 analysisStatus를 DONE으로 처리.
AnswerRepository에 existsByRetrospectIdAndAnswerStatus 추가.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
imgUrl DB 저장 방식 대신 EmojiCode enum(LEC01~LEC10)으로
서버-클라이언트 간 소통하고, 이미지 리소스는 클라이언트가 관리.
요청 시 emojiCode(String) 전달, 응답에 emojiCode + description 포함.

LEC01 대단해 / LEC02 완벽해 / LEC03 최고야 / LEC04 역시
LEC05 고생했어 / LEC06 기대중 / LEC07 괜찮아 / LEC08 성장했다
LEC09 화이팅 / LEC10 할 수 있다

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
imgUrl → emojiCode/description 변경 반영.
이모지 코드 목록(LEC01~LEC10) 및 변경된 요청/응답 스펙 업데이트.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 4acf214c-44b2-4866-8de1-f87efb452dfe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@mikekks mikekks merged commit f40372f into main Jun 23, 2026
6 checks passed
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