Skip to content

feat: failed job detail page with inline argument editor and retry#12

Merged
eclectic-coding merged 2 commits into
mainfrom
feat/edit-arguments-retry
May 25, 2026
Merged

feat: failed job detail page with inline argument editor and retry#12
eclectic-coding merged 2 commits into
mainfrom
feat/edit-arguments-retry

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Adds a detail page for individual failed jobs (GET /failed_jobs/:id) showing error info, backtrace, queue/priority metadata, and a monospace argument editor
  • Introduces FailedJobs::ArgumentsController (nested singular resource resource :arguments) — allows editing job arguments as JSON and retrying in one action
  • Adds full request spec coverage for the show page, argument update happy/error paths, and rescue blocks in SelectionsController and ArgumentsController

Test plan

  • GET /failed_jobs/:id returns 200, shows job class, error, backtrace, breadcrumb, Retry/Discard buttons, and argument editor form
  • PATCH /failed_jobs/:id/arguments updates arguments and retries the job; redirects with alert on invalid JSON or DB error
  • rescue JSON::ParserError path covered (invalid JSON input)
  • rescue => e path covered in ArgumentsController, FailedJobs::SelectionsController (retry and discard), and Jobs::SelectionsController
  • Full suite: 103 examples, 0 failures, 98% line coverage

🤖 Generated with Claude Code

eclectic-coding and others added 2 commits May 25, 2026 17:19
Add show action and view to FailedJobsController; FailedJobs::ArgumentsController
handles PATCH /failed_jobs/:id/arguments — parses the submitted JSON, updates
the job arguments, and retries. Invalid JSON redirects back with an alert.
Job class names in the failed jobs list are now links to the detail page.

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 ffcac0b into main May 25, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the feat/edit-arguments-retry branch May 25, 2026 21:32
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