Implement missing features: Audit Logging, Permissions API, and CLI Rollback#3
Implement missing features: Audit Logging, Permissions API, and CLI Rollback#3
Conversation
…ollback - Created AuditLogger service in the framework. - Integrated AuditLogger and PermissionService into ExtensionLibrary. - Updated ExtensionsController to log settings updates in the audit log. - Implemented atomic rollback mechanism in the CLI install command. - Fixed variable scoping and cleanup logic in the CLI installer. - Improved rollback safety to avoid deleting existing extensions on early failure. Co-authored-by: chlewtf <234900867+chlewtf@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
- Fixed PHPDoc alignment in AuditLogger service to satisfy Laravel Pint. - Improved CLI rollback logic to avoid data loss on early installation failures. - Restored package-lock.json to avoid unintended noise. - Removed PHPUnit cache file from repository. Co-authored-by: chlewtf <234900867+chlewtf@users.noreply.github.com>
Identified and implemented several features that were documented but missing in the implementation:
can()method, allowing extensions to easily check user permissions.reshaped installcommand. If installation or an update fails, the CLI will now automatically restore the previous state from a backup (if updating) or clean up partially installed files (if new installation), ensuring the panel remains in a working state.Also addressed feedback regarding rollback safety and scoping. Verified all changes with framework and CLI test suites.
PR created automatically by Jules for task 538594328927864103 started by @chlewtf