-
Notifications
You must be signed in to change notification settings - Fork 17
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
Enabled upload of zip archive of multiple SRG XML files #512
base: master
Are you sure you want to change the base?
Enabled upload of zip archive of multiple SRG XML files #512
Conversation
Signed-off-by: Vanessa Fotso <[email protected]>
3306e55
to
3adfb6a
Compare
Is this PR ready for merge? |
Copilot
AI
left a comment
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.
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 suggestion.
@@ -23,7 +23,7 @@ def self.from_mapping(benchmark_mapping) | |||
title = benchmark_mapping.title.first rescue nil | |||
version = "V#{benchmark_mapping.version.version}" \ | |||
"#{SecurityRequirementsGuide.revision(benchmark_mapping.plaintext.first)}" rescue nil | |||
release_date = SecurityRequirementsGuide.release_date(benchmark_mapping.plaintext.first) | |||
release_date = SecurityRequirementsGuide.release_date(benchmark_mapping.plaintext.first) rescue nil |
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.
Using rescue nil
suppresses all errors, which might hide issues that should be addressed. Suggestion: Handle specific exceptions or log the error for debugging purposes.
release_date = SecurityRequirementsGuide.release_date(benchmark_mapping.plaintext.first) rescue nil | |
release_date = SecurityRequirementsGuide.release_date(benchmark_mapping.plaintext.first) rescue StandardError => e; Rails.logger.error(e.message); nil |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
Feature enhancement #498
Signed-off-by: Vanessa Fotso [email protected]