Skip to content

Fix upcoming schedule status filter - #412

Merged
jbrooksuk merged 1 commit into
mainfrom
codex/fix-schedule-upcoming-status
Aug 5, 2026
Merged

Fix upcoming schedule status filter#412
jbrooksuk merged 1 commit into
mainfrom
codex/fix-schedule-upcoming-status

Conversation

@jbrooksuk

Copy link
Copy Markdown
Member

Summary

  • make ScheduleStatusEnum::upcoming() return only the upcoming status value
  • add a regression test covering the enum helper

Root cause

The upcoming() helper duplicated the values returned by incomplete(), so in-progress schedules were incorrectly included where only upcoming schedules were requested.

Impact

Consumers can now distinguish upcoming schedules from all incomplete schedules.

Fixes #340

Validation

  • vendor/bin/pest tests/Unit/ScheduleStatusEnumTest.php
  • composer test:lint

@jbrooksuk
jbrooksuk marked this pull request as ready for review August 5, 2026 08:19
@jbrooksuk
jbrooksuk merged commit db8e016 into main Aug 5, 2026
23 checks passed
@jbrooksuk
jbrooksuk deleted the codex/fix-schedule-upcoming-status branch August 5, 2026 08:19
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.

ScheduleStatusEnum::incomplete() and upcoming() return identical values

1 participant