feat: admin audit log (v1.4)#106
Merged
Merged
Conversation
Records who retried, discarded, or paused what and when. Requires opt-in migration via `rails solid_stack_web:install:migrations`. - AuditEvent model (solid_stack_web_audit_events table) with 8 actions - record_audit / resolve_current_actor helpers in ApplicationController - new config.current_actor block for actor identity - Recording wired into JobsController, FailedJobsController, Queues::PausesController, FailedJobs::SelectionsController, Jobs::SelectionsController - AuditController with HTML + CSV responses, filters by action/actor/queue - Audit view with badge-coloured actions, actor/queue filter links - MigrationsGenerator for host-app migration installation - Audit nav link added to Queue subnav - 17 new request specs + dummy schema updated Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
filter_persist_controller was imported in application.js but never pinned, causing a browser module resolution error in the dummy app. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds 12 audit events covering all 8 action types across multiple actors and queues, with realistic timestamps for manual testing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
81d7b49 to
d08933a
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
==========================================
- Coverage 99.46% 98.65% -0.82%
==========================================
Files 39 41 +2
Lines 749 815 +66
==========================================
+ Hits 745 804 +59
- Misses 4 11 +7
🚀 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
AuditEventmodel —solid_stack_web_audit_eventstable with 8 action types; opt-in viarails solid_stack_web:install:migrationsMigrationsGenerator— newrails solid_stack_web:install:migrationsgenerator produces the migrationconfig.current_actorblock — identify who performed each action (runs in controller context)JobsController,FailedJobsController,Queues::PausesController,FailedJobs::SelectionsController,Jobs::SelectionsController; gracefully swallows errors so missing migration never breaks the dashboardAuditController— HTML + CSV responses; filters by action, actor, and queue; redirects with a helpful message if migration hasn't been runfilter_persist_controllerpinned in importmap (was missing since v1.2.0);spec/dummy/log/fully gitignored to prevent rotated log files being committedTest plan
🤖 Generated with Claude Code