Skip to content

[codex] FilterIsActive の公開条件に公開開始日時を追加#36

Merged
kantacky merged 1 commit intomainfrom
codex/filter-active-available-from
Apr 1, 2026
Merged

[codex] FilterIsActive の公開条件に公開開始日時を追加#36
kantacky merged 1 commit intomainfrom
codex/filter-active-available-from

Conversation

@kantacky
Copy link
Copy Markdown
Member

@kantacky kantacky commented Apr 1, 2026

やったこと

  • FilterIsActive の条件に available_from <= NOW() を追加
  • 公開開始前の announcement が active として取得されないよう修正

確認したこと

  • 差分上、active 条件が「公開開始済み」かつ「公開終了前または終了日時未設定」になっていることを確認

メモ

  • これまでは公開終了日時のみを見ていたため、公開開始前のデータも active 扱いになっていた
  • devで動作確認済み
  • マージ後、qaとprodに手動デプロイ

@kantacky kantacky changed the title [codex] Include available_from in active filter [codex] FilterIsActive の公開条件に公開開始日時を追加 Apr 1, 2026
@kantacky kantacky marked this pull request as ready for review April 1, 2026 13:38
@kantacky kantacky requested review from a team, Copilot, hikaru-0602 and masaya-osuga April 1, 2026 13:38
@kantacky kantacky enabled auto-merge (squash) April 1, 2026 13:40
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

FilterIsActive の判定条件に「公開開始日時(available_from)が現在時刻以前」を追加し、公開開始前の announcement が active 扱いで取得されてしまう挙動を修正するPRです。

Changes:

  • FilterIsActive 有効時の絞り込み条件に available_from <= NOW() を追加
  • active 条件を「公開開始済み」かつ「公開終了前または終了日時未設定」に調整

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@hikaru-0602 hikaru-0602 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kantacky kantacky merged commit 3a6dde7 into main Apr 1, 2026
9 checks passed
@kantacky kantacky deleted the codex/filter-active-available-from branch April 1, 2026 13:41
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.

3 participants