Uh oh!
There was an error while loading. Please reload this page.
improvement(audit): enrich metadata across 23 audit log call sites - #3319
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
waleedlatif1
commented
Feb 24, 2026
@cursor review |
waleedlatif1
commented
Feb 24, 2026
Greptile SummaryThis PR systematically enriches audit log metadata across 23 API route files with standardized, well-structured metadata fields. The changes establish consistent patterns for security-critical operations (member management, invitations, permission changes) and operational events (deployments, deletions, uploads). Key improvements:
Code quality:
Confidence Score: 5/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Audit Log Event] --> B{Event Type}
B -->|Security-Critical| C[Member/Invitation Operations]
B -->|Operational| D[Resource Operations]
C --> C1[Standard Metadata]
C1 --> C1a[targetEmail]
C1 --> C1b[targetName]
C1 --> C1c[targetRole]
C --> C2[State Changes]
C2 --> C2a["changes[] array"]
C2a --> C2b["field: 'role'"]
C2a --> C2c[from: old value]
C2a --> C2d[to: new value]
D --> D1[Deletion Operations]
D1 --> D1a["affected{} object"]
D1a --> D1b[workflows count]
D1a --> D1c[folders count]
D1a --> D1d[subfolders count]
D --> D2[Upload Operations]
D2 --> D2a[File Metadata]
D2a --> D2b[fileCount]
D2a --> D2c[fileNames]
D2a --> D2d[fileType]
D2a --> D2e[fileSize]
D --> D3[Deploy Operations]
D3 --> D3a[version ID]
style A fill:#e1f5ff
style C fill:#fff4e6
style D fill:#f3e5f5
style C1 fill:#c8e6c9
style C2 fill:#ffccbc
style D1 fill:#b3e5fc
style D2 fill:#d1c4e9
style D3 fill:#ffe0b2
Last reviewed commit: 77eb2f0 |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Uh oh!
There was an error while loading. Please reload this page.
77eb2f0 to
cdd9a93CompareUh oh!
There was an error while loading. Please reload this page.
…imstudioai#3319) * improvement(audit): enrich metadata across 23 audit log call sites * improvement(audit): enrich metadata across 23 audit log call sites
Summary
targetEmail,targetName,targetRole,changes[],affected{}recordAuditcalls across 23 API route files with structured metadataworkspaceIdon credential set invitation resent audit callType of Change
Testing
Checklist