Skip to content

Leigh/batches - #15

Open
leighhalliday wants to merge 2 commits into
cmer:mainfrom
leighhalliday:leigh/batches
Open

leighhalliday wants to merge 2 commits into
cmer:mainfrom
leighhalliday:leigh/batches

Conversation

@leighhalliday

@leighhalliday leighhalliday commented Sep 22, 2026 •

Copy link
Copy Markdown

Summary

  • Adds a Batches page when the host is on Solid Queue 1.7+ and has run the optional batches migration. Older hosts, or hosts that have not migrated, keep the rest of the dashboard unchanged.
  • The list has All, Unfinished, Completed, and Failed tabs. A running batch’s progress comes from live counts; a finished batch uses the stored counters.
  • The batch page shows that progress, its jobs (keyset-paginated), callback class names, and metadata. Callback payloads are read as JSON and are never deserialized through ActiveJob.
  • A job that belongs to a batch gets a “Part of” card linking back to it. The sidebar shows Batches, with a count, only when batches are available.
  • Job list pagination is shared with batches, and a list of one job now says “1 job” (and “1 failed job”).

Images

Batch Index:
image

Batch Show:
image

Job Part Of:
image

Test plan

  • bin/demo, then open /flightdeck/batches. Confirm the seeded running, completed, and failed batches, and that each tab shows only its status.
  • Page through the list with Older / Newest. Open a batch and confirm the progress bar, its jobs, a callback class name, and attached metadata.
  • Open a job in that batch and confirm the “Part of” card links back. A job with no batch should not show the card.
  • With a single job in a list, confirm the pager says “1 job” (and “1 failed job” on the failed tab).
  • On a host without the batches tables, confirm Batches is absent from the sidebar and /flightdeck/batches redirects to the overview.

@leighhalliday
leighhalliday marked this pull request as ready for review September 22, 2026 01:42
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