Repository navigation
Conversation
カレンダーアプリが購読する URL(#452)のトークンを、ユーザーごとに 1 つ保存する calendar_feeds テーブルとマイグレーション 0076 を追加する。トークンそのものは保存せず、 SHA-256 のハッシュだけを持つ。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q
購読 URL のトークン(32 バイトの乱数)を発行・作り直し・削除するユースケースと、 カレンダーアプリが読んだ日時を 1 時間おきに記録する処理を追加する。作り直すと 前のトークンのハッシュを差し替え、読んだ日時も消す。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Dec 4, 2026
管理画面の VRT (reg-suit) 結果
|
VRT (reg-suit) 結果
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#452(iCalendar に対応する)の積み上げ PR の 1 本目です。カレンダーアプリが購読する URL のトークンを保存するテーブルと、発行・作り直し・停止のユースケースを追加します。
この PR だけでは画面にも URL にも出ないため、利用者から見える変化はありません(リリースノート・バージョンは最後の PR で更新します)。
積み上げの順番
/calendar/<トークン>.ics)の Route HandlerCloses #452)変更点
calendar_feedsテーブルとマイグレーション0076_calendar_feeds.sqlを追加user_idが一意)。トークンそのものは保存せず、SHA-256 のハッシュ(token_hash)だけを持つ(API トークン・セッションと同じ)ため、URL を表示できるのは発行したときだけlast_accessed_atはカレンダーアプリが最後に読んだ日時。D1 への書き込みを減らすため、1 時間以内の読み取りでは更新しないsrc/features/calendar-feedsに、トークンの発行・作り直し(UPSERT でハッシュを差し替え、前の URL は無効)・停止(行の削除)・読んだ日時の記録を追加src/db/README.mdにテーブルの説明を追記マイグレーションの適用タイミング
0076はテーブルの追加だけで、既存のコードは参照しません。マージ前にpnpm db:migrate:remote(とプレビューのpnpm db:migrate:preview)を適用して問題ありません。 この PR のコードはどのリクエストからも呼ばれないため、遅くとも 3 本目(Route Handler)・4 本目(設定画面)のマージ前に適用してください。確認したこと
pnpm lint(既存の警告 18 件のみ)・型チェック・pnpm testが通ること判断してほしい点
🤖 Generated with Claude Code
https://claude.ai/code/session_01GXATviknZpoyf5M25RtU9Q