feat: add workspace activity audit log #77

Open
Charon wants to merge 1 commit from feat/workspace-activity-audit-log into dev
Member

Summary

  • Add WorkspaceActivity model as a central audit log for significant workspace actions
  • Add workspace_activities migration with columns: workspace_id, user_id, action, subject_type, subject_id, metadata (JSON), created_at
  • Add LogsWorkspaceActivity trait that models can use for auto-logging or manual activity recording
  • Add activities() relationship to the Workspace model

Action constants cover workspace lifecycle, membership changes, entitlement changes, and security events (API keys, webhooks).

Fixes #37

## Summary - Add `WorkspaceActivity` model as a central audit log for significant workspace actions - Add `workspace_activities` migration with columns: workspace_id, user_id, action, subject_type, subject_id, metadata (JSON), created_at - Add `LogsWorkspaceActivity` trait that models can use for auto-logging or manual activity recording - Add `activities()` relationship to the `Workspace` model Action constants cover workspace lifecycle, membership changes, entitlement changes, and security events (API keys, webhooks). Fixes #37
Charon added 1 commit 2026-03-24 13:51:23 +00:00
Add WorkspaceActivity model, migration, and LogsWorkspaceActivity trait
to provide a central audit trail for significant workspace actions
including security events, membership changes, and entitlement changes.

Fixes #37

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/workspace-activity-audit-log:feat/workspace-activity-audit-log
git checkout feat/workspace-activity-audit-log

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout dev
git merge --no-ff feat/workspace-activity-audit-log
git checkout feat/workspace-activity-audit-log
git rebase dev
git checkout dev
git merge --ff-only feat/workspace-activity-audit-log
git checkout feat/workspace-activity-audit-log
git rebase dev
git checkout dev
git merge --no-ff feat/workspace-activity-audit-log
git checkout dev
git merge --squash feat/workspace-activity-audit-log
git checkout dev
git merge --ff-only feat/workspace-activity-audit-log
git checkout dev
git merge feat/workspace-activity-audit-log
git push origin dev
Sign in to join this conversation.
No description provided.