-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix tr-sync-ot command #385
base: main
Are you sure you want to change the base?
Conversation
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.
Looks good! Left some comments. Are there any tests it would make sense to add for this?
README.md
Outdated
- [tr-push](#tr-push) | ||
- [Authentication](#authentication-2) | ||
- [Arguments](#arguments-2) | ||
- [Usage](#usage-3) | ||
- [CI Integration](#ci-integration) | ||
- [Dynamic Variables](#dynamic-variables) | ||
- [tr-scan-packages](#tr-scan-packages) | ||
- [Authentication](#authentication-3) |
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.
I think the cascading changes in this file are because the "authentication" link for #tr-push became #authentication-3 instead of -2 (and similarly with arguments and usage). I'm not sure why that would happen--is this a problem, or is it fine?
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.
double checking... thanks for noticing.
logger.error( | ||
colors.red( | ||
`An error occurred syncing the resource ${resource} from OneTrust: ${ | ||
debug ? err.stack : err.message |
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.
Does the stack include the error message? Or would you also want to print that?
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.
yes, it does! Good question.
level
from the OneTrust risk levelgetOneTrustUser
may fail to find the user. Hence,creator
,respondents
, andreviewers
may not get enriched with details.syncOneTrustAssessmentToTranscend
so it reports error to the console instead of aborting the syncing.src/cli-sync-ot.ts
.