Skip to content

feat: discard all jobs matching current filters#8

Merged
eclectic-coding merged 3 commits into
mainfrom
feat/discard-all
May 25, 2026
Merged

feat: discard all jobs matching current filters#8
eclectic-coding merged 3 commits into
mainfrom
feat/discard-all

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds a Discard All (N) button to the jobs index header for ready, scheduled, and blocked statuses
  • Discards every job matching the active filters (class, queue, priority, period) in one request
  • Merges into the existing destroy action branching on params[:id] — same pattern as solid_queue_dashboard
  • Route: POST /jobs/discard_all → jobs#destroy
  • Refactors jobs#show to drop the redundant @job instance variable — uses @execution.job directly

Test plan

  • bundle exec rspec — 70 examples, 0 failures, 97.44% coverage
  • bin/rubocop — no offenses

🤖 Generated with Claude Code

eclectic-coding and others added 3 commits May 25, 2026 16:02
Adds a "Discard All (N)" button to the jobs index header for
ready, scheduled, and blocked statuses. The action is merged into
the existing destroy action (branching on params[:id] presence),
following the same pattern as solid_queue_dashboard.

Route: POST /jobs/discard_all → jobs#destroy (no :id)
Single discard: DELETE /jobs/:id → jobs#destroy (with :id)

Filters (class, queue, priority, period) are applied before bulk
deletion so operators can target a subset of jobs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ctly

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 3b3c2dc into main May 25, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feat/discard-all branch May 25, 2026 20:07
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