Skip to content
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

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

fix tr-sync-ot command #385

wants to merge 21 commits into from

Conversation

abrantesarthur
Copy link
Member

@abrantesarthur abrantesarthur commented Feb 6, 2025

  • correctly extract the level from the OneTrust risk level
  • take into account fact getOneTrustUser may fail to find the user. Hence, creator, respondents, and reviewers may not get enriched with details.
  • improves syncOneTrustAssessmentToTranscend so it reports error to the console instead of aborting the syncing.
  • uncomment try-catch lines in src/cli-sync-ot.ts.
  • fix README.

@abrantesarthur abrantesarthur changed the title [WIP]: fix cli fix tr-sync-ot command Feb 7, 2025
@abrantesarthur abrantesarthur requested a review from a team February 7, 2025 23:47
@abrantesarthur abrantesarthur marked this pull request as ready for review February 7, 2025 23:48
Copy link
Member

@lvonessen lvonessen left a 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
Comment on lines 19 to 20
- [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)
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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?

Copy link
Member Author

@abrantesarthur abrantesarthur Feb 11, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants