Skip to content

Link dashboard stat cards to filtered lists; getLength aborted consistency#506

Merged
dereuromark merged 1 commit into
masterfrom
dashboard-card-links-and-getlength
May 28, 2026
Merged

Link dashboard stat cards to filtered lists; getLength aborted consistency#506
dereuromark merged 1 commit into
masterfrom
dashboard-card-links-and-getlength

Conversation

@dereuromark
Copy link
Copy Markdown
Owner

Summary

  • getLength() now reuses pendingConditions() so it excludes terminally aborted jobs, consistent with getPendingCount()/getPendingStats() (from Exclude aborted jobs from pending count and stats #505). Fixes the admin "Pending Jobs (new/current)" card header counting jobs the aborted-aware pending list below it did not contain.
  • The status search filter gains pending, running, failed, and aborted values (alongside completed/in_progress/scheduled), each matching the corresponding dashboard stat-card count exactly.
  • The Scheduled / Pending / Running / Failed stat cards are now clickable, linking to the job index filtered by the matching status (the stats_card element already accepted a link).

Notes

  • pending = waiting (completed null, not fetched, no failure, due, not aborted) — mirrors $pendingJobs = totalPending - running - retriable-failed.
  • Tests: getLength excludes aborted; index filter returns the right set for pending/running/failed/aborted.

… aborted exclusion

- getLength() now reuses pendingConditions() so it excludes terminally
  aborted jobs, matching getPendingCount()/getPendingStats(). This fixes
  the admin "Pending Jobs (new/current)" card header showing a count that
  the (aborted-aware) pending list below it did not contain.
- Status search filter gains pending, running, failed and aborted values
  (alongside completed/in_progress/scheduled), each matching the
  corresponding dashboard stat-card count.
- Dashboard Scheduled/Pending/Running/Failed stat cards now link to the
  job index filtered by the matching status, so they are clickable and
  land on exactly the jobs they count.
@dereuromark dereuromark merged commit f607a61 into master May 28, 2026
16 checks passed
@dereuromark dereuromark deleted the dashboard-card-links-and-getlength branch May 28, 2026 16:35
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.

1 participant