slow-quizボットのFirestoreデータ破損問題にゃ
Open
@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の制限を超えちゃったみたいなんだにゃ。
必要な対応にゃ
- データ構造の再設計:
slow_quiz_gamesをマスターデータとして使うようにするにゃ - 状態ストレージの修正:状態にゲーム情報を直接保存しないようにするにゃ
- Firebase Function削除:
updateSlowQuizCollection関数はもう使わなくなるから削除する必要があるにゃ- この関数は
states/slow-quizの更新を監視してslow_quiz_gamesコレクションに同期してるけど、状態からゲームデータを削除したら同期するものがなくなっちゃうにゃ!
- この関数は
- 一時的な無効化:さらなる状態破損を防ぐために、しばらく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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.