improvement(audit): enrich metadata across 23 audit log call sites#3319
Merged
waleedlatif1 merged 2 commits intostagingfrom Feb 24, 2026
Merged
improvement(audit): enrich metadata across 23 audit log call sites#3319waleedlatif1 merged 2 commits intostagingfrom
waleedlatif1 merged 2 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Collaborator
Author
|
@cursor review |
Collaborator
Author
|
@greptile |
Contributor
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.
77eb2f0 to
cdd9a93
Compare
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
targetEmail,targetName,targetRole,changes[],affected{}recordAuditcalls across 23 API route files with structured metadataworkspaceIdon credential set invitation resent audit callType of Change
Testing
Checklist