feat: admin audit log#78
Merged
Merged
Conversation
- Add engine migration and install generator (rails solid_queue_web:install:migrations) - Add SolidQueueWeb::AuditEvent model with validations - Add SolidQueueWeb.current_actor config block for identity resolution - Add record_audit/resolve_current_actor helpers to ApplicationController - Add solid_queue_web_audit_events table to dummy app schema Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Log audit events after successful: job_discarded, jobs_discarded, failed_job_retried, failed_jobs_retried, failed_job_discarded, failed_jobs_discarded, queue_paused, queue_resumed. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- GET /jobs/audit — paginated audit log with action/actor/queue filters - CSV export via audit.csv - "Audit" link added to main nav - Clicking actor or queue name filters the log Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 25 request specs for AuditController (filters, CSV, auth) - 12 request specs for audit recording across all action controllers - Fix single vs. bulk action name to key off params[:id] presence Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Clear and reseed solid_queue_web_audit_events with 12 realistic entries spanning all action types, multiple actors, queues, and bulk counts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Follows the same before_action + private scope method pattern as JobsController. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #78 +/- ##
===========================================
- Coverage 100.00% 97.22% -2.78%
===========================================
Files 34 37 +3
Lines 755 830 +75
===========================================
+ Hits 755 807 +52
- Misses 0 23 +23
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
solid_queue_web_audit_eventstable via opt-in install generator (rails generate solid_queue_web:install:migrations)SolidQueueWeb.current_actorconfig block (evaluated in controller context)GET /jobs/audit— paginated audit log with action/actor/queue filters, clickable actor/queue links, and CSV exportAudited actions
job_discardedjobs_discardedfailed_job_retriedfailed_jobs_retriedfailed_job_discardedfailed_jobs_discardedqueue_pausedqueue_resumedTest plan
AuditController(empty state, row rendering, action/actor/queue filters, clear link, invalid filter ignored, CSV, auth)current_actorblock, nil actor when unconfigured)Closes #63
🤖 Generated with Claude Code