tsg-ut / tsg-ut/slackbot

slow-quizボットのFirestoreデータ破損問題にゃ

Open
#1,069 0 comments 0 reactions 1 assignee View on GitHub

@hakatashi is already working on this.

Since Sep 16, 2025.

dead
Dominant language
TypeScript
Stars
17
Forks
14
PR merge metrics
No merged PRs in 30d

Description

問題の説明にゃ

うにゃ~~~!9月13日にSlackbotが再起動した後、slow-quizボットの状態が9月11-12日の状態まで巻き戻っちゃったにゃ!

これはFirestoreの1MBドキュメントサイズ制限にぶつかったのが原因だと思うにゃ。うなが魔法で調べたところ、slow-quizゲームデータがどんどん大きくなって、Firestoreの制限を超えちゃったみたいなんだにゃ。

必要な対応にゃ

  1. データ構造の再設計slow_quiz_gamesをマスターデータとして使うようにするにゃ
  2. 状態ストレージの修正:状態にゲーム情報を直接保存しないようにするにゃ
  3. Firebase Function削除updateSlowQuizCollection関数はもう使わなくなるから削除する必要があるにゃ
    • この関数はstates/slow-quizの更新を監視してslow_quiz_gamesコレクションに同期してるけど、状態からゲームデータを削除したら同期するものがなくなっちゃうにゃ!
  4. 一時的な無効化:さらなる状態破損を防ぐために、しばらくslow-quizボットを無効にしておくにゃ

次のステップにゃ

  • Firestore 1MB制限問題の根本原因調査
  • 新しいデータ保存アプローチの設計(制限を回避)
  • 失われたゲーム状態の復旧/再構築戦略の検討
  • Firebase Function updateSlowQuizCollection の削除(functions/src/index.ts:57-82)

にゃししっ!早く直さないとみんながslow-quizできなくて困っちゃうにゃ!

参考情報

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.