-
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
add support for syncing Assessments from OneTrust to Transcend #376
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.
Other than the FIXME i think this is honestly ... pretty good and ready to go
const { risks, ...restQuestion } = question; | ||
const enrichedRisks = (risks ?? []).map((risk) => { | ||
const details = riskDetailsById[risk.riskId]; | ||
// FIXME: missing the risk meta data and links to the assessment |
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.
did you mean to do this FIXME
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! I still need to check what Informa means by "risk metadata and links" and add those here.
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 is killer, wow!
| file | Path to the file to pull the resource into. Its format must match the fileFormat argument. | string | N/A | false | | ||
| fileFormat | The format of the output file. | string | csv | false | | ||
| resource | The resource to pull from OneTrust. For now, only assessments is supported. | string | assessments | false | | ||
| dryRun | Whether to export the resource to a file rather than sync to Transcend. | boolean | false | false | |
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.
Is it worth trying to convey that some arguments are conditionally required? E.g. I assume if you have --dryRun
then file
is required, and if you don't then transcendAuth
/transcendUrl
are required
I suggest starting the review from the command's entrypoint
cli-sync-ot.ts
.See updated README for instructions of how to test this. Locally, you'd do
yarn ts-node ./src/cli-sync-ot.ts
. instead ofyarn cli-sync-ot
.cli-pull-ot
->cli-sync-ot
.Note that requests to
importOneTrustAssessmentForms
fail because we need to update the endpoint, not because the cli has bugs.Related Issues
Security Implications
[none]
System Availability
[none]