You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 03b51ed
Browse filesBrowse the repository at this point in the historyBrowse files
feat(admin_audit): add stable operation identifier to audit log entries
Every audit log entry now carries a machine-readable "operation" field
(e.g. "files.file.read") in its data, next to the human-readable message.
Log consumers can filter on it instead of matching message text, which
may change between releases.
The names are defined once in the new OCA\AdminAudit\Operation enum.
Operations passed by other apps through CriticalActionPerformedEvent are
written as given.
Refs nextcloud-gmbh/governance#199
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Ghassen kefi <ghassen.kefi.dev@gmail.com>
Copy file name to clipboardExpand all lines: apps/admin_audit/lib/Actions/Action.php
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
namespaceOCA\AdminAudit\Actions;
10
10
11
11
useOCA\AdminAudit\IAuditLogger;
12
+
useOCA\AdminAudit\Operation;
12
13
13
14
class Action {
14
15
@@ -20,21 +21,28 @@ public function __construct(
20
21
/**
21
22
* Log a single action with a log level of info
22
23
*
24
+
* @param Operation|string|null $operation Stable identifier of the action. A string in the form `app.entity.action` is only expected from other apps via CriticalActionPerformedEvent
0 commit comments