Skip to content

chore: simplify show action and remove stale queue param#19

Merged
eclectic-coding merged 2 commits into
mainfrom
chore/simplify-show-action
May 19, 2026
Merged

chore: simplify show action and remove stale queue param#19
eclectic-coding merged 2 commits into
mainfrom
chore/simplify-show-action

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Summary

  • Remove redundant @failed_execution and @blocked_execution controller assigns in JobsController#show — associations are already eager-loaded via includes, so the view reads @job.failed_execution and @job.blocked_execution directly at no extra query cost
  • Remove stale queue: @queue from the status tab links in jobs/index.html.erb@queue is no longer set in JobsController#index after the Queues::JobsController refactor; the nil was harmless but dead code

Test plan

  • 23 examples pass (bundle exec rspec spec/requests/solid_queue_web/jobs_spec.rb)
  • RuboCop clean (bin/rubocop)

🤖 Generated with Claude Code

eclectic-coding and others added 2 commits May 19, 2026 10:02
Associations are already eager-loaded via includes in the show action.
The view now reads @job.failed_execution and @job.blocked_execution
directly — no extra queries, no extra variables.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Queue is no longer set in JobsController#index after the
Queues::JobsController refactor. The nil was harmless but dead code.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit 93a3239 into main May 19, 2026
5 checks passed
@eclectic-coding eclectic-coding deleted the chore/simplify-show-action branch May 19, 2026 14:07
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d791a80) to head (8b7202f).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #19   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           12        12           
  Lines          187       185    -2     
=========================================
- Hits           187       185    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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