Skip to content

fix(bigchat): 신청·취소 반응 순서 보존과 리마인더 수신자 전환 - #176

Open
progresshans wants to merge 3 commits into
fix/bigchat-identity-and-sheet-errorsfrom
fix/bigchat-reaction-order-reminders
Open

progresshans wants to merge 3 commits into
fix/bigchat-identity-and-sheet-errorsfrom
fix/bigchat-reaction-order-reminders

Conversation

@progresshans

@progresshans progresshans commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

스택 3/5 · 검토 순서 #172 → #173 → #176 → #174 → #177 · 기반 #173

문제

#173만으로는 신청과 취소 이벤트가 뒤바뀌어 처리되면, 지연된 신청이 더 최신인 취소를 뒤집을 수 있습니다. 시트 생성 직후의 자동 등록도 그사이의 실시간 취소를 덮어쓸 수 있습니다. 리마인더는 여전히 시트의 이메일을 회원 명부와 맞춰 보내므로, 이메일이 바뀌거나 취소된 행에 메모가 남으면 수신자가 틀어집니다.

변경

  • 참여자 metadata에 마지막 Slack event_ts와 신청·취소 상태를 저장합니다. 상태 변경과 A:D 쓰기는 읽었던 metadata 버전을 필터로 사용해, 그사이 더 최신 이벤트가 반영됐으면 쓰지 않습니다.
  • 신청 기록 없는 취소도 상태를 남깁니다. 오래된 이벤트와 생성 직후 자동 등록은 더 최신인 상태를 덮어쓰지 못하고 조용히 무시됩니다.
  • 새 형식 시트의 리마인더는 같은 metadata와 활성 A:D 행에서 Slack 사용자 ID를 읽습니다. 취소된 행의 메모는 대상이 되지 않으며, metadata binding이 없는 기존 시트는 이메일 매칭을 유지합니다.
  • 리마인더 조회 결과는 metadata ID로 대응시켜, API가 필터를 요청과 다른 형태로 돌려줘도 실패하지 않습니다.
  • 빅챗 하나의 리마인더가 실패해도 다른 빅챗에는 보냅니다. 실패한 빅챗은 예약 작업의 관리자 알림과 수동 reminder 명령 보고에 표시합니다.
  • 수동 명령 보고에 안내가 덧붙으면 본문이 들여쓴 채로 나가던 문제를 고쳤습니다.

검증

  • 로컬 make ci 통과: 앱 테스트 585개, 포맷·린트·타입 검사.
  • 실제 핸들러·저장소와 API 대역으로 뒤바뀐 신청·취소, 중복 전달, 응답 유실, 버전 충돌, 이메일 변경·정렬 뒤의 리마인더를 검증합니다(test_reaction_ordering.py).
  • 실제 Sheets 검증은 #177에서 실행합니다.

progresshans and others added 3 commits November 5, 2026 16:18
- Map batchGetByDataFilter results back by metadata ID instead of
  requiring the echoed filter to equal the request. The server already
  matched each filter on its full revision value, so a concurrent
  cancellation still cannot become a reminder recipient, while a
  normalized echo no longer aborts the day's reminders.
- Check reminder recipients in the live Sheets verification run, since
  the in-memory double cannot show how the real API echoes filters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Catch failures per bigchat: log the cause, record the bigchat in
  ReminderResult.failed_bigchat_names and continue with the others.
  Failing to list the worksheets still fails the whole run.
- The scheduled job tells the admin channel which bigchats were skipped,
  and the manual reminder command lists them in its report.
- Append report notes after strip_multiline, so the report body is no
  longer sent indented when a note is present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T07:26:44.981273Z 0296c1b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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