-
Notifications
You must be signed in to change notification settings - Fork 35
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
Audit log support #806
Audit log support #806
Conversation
Added unit tests for 100% coverage
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #806 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 56 57 +1
Lines 3243 3323 +80
Branches 617 641 +24
=========================================
+ Hits 3243 3323 +80 ☔ View full report in Codecov by Sentry. |
* @param {string} env valid env stage|prod | ||
*/ | ||
async function sendAuditLogs (accessToken, logEvent, env = 'prod') { | ||
const url = AUDIT_SERVICE_ENPOINTS[env] |
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.
This could be null, what do you do if your not passed 'prod' or 'stage'
You should just default to prod ...
const url = env === 'stage' ? AUDIT_SERVICE_ENPOINTS.stage : AUDIT_SERVICE_ENPOINTS.prod
DO NOT MERGE (util we have service deployment in place)
Support to send audit log events on app deploy.
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: