-
Couldn't load subscription status.
- Fork 39
feat: add org_name to audit records
#1217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
org_name field to audit recordsorg_name to audit records
Pull Request Test Coverage Report for Build 18748106950Details
💛 - Coveralls |
| if auditRecord.OrgID != "" { | ||
| query, params, err := buildOrgNameQuery(auditRecord.OrgID) | ||
| if err == nil { | ||
| _ = r.dbc.QueryRowxContext(ctx, query, params...).Scan(&dbRecord.OrganizationName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case of any error, we would loose have empty org name, are we ok with that?
| var orgName string | ||
| query, params, err := buildOrgNameQuery(record.OrganizationID) | ||
| if err == nil { | ||
| _ = tx.QueryRowContext(ctx, query, params...).Scan(&orgName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in case of any error, we would loose have empty org name, are we ok with that?
Added organization name (org_name) to audit records. Refactored billing transaction audit logging to avoid serialization conflicts in high-concurrency scenarios.
Why: