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: enabling exit codes for general cli o/p and updating field names #43

Merged
merged 5 commits into from
Apr 8, 2021

Conversation

deepak1725
Copy link
Member

Enabling exit codes for general CLI output and updating field names

Jira: https://issues.redhat.com/browse/APPAI-1816

Copy link
Member

@yzainee-zz yzainee-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also fix the spelling in

TotalVulnerabilities int `json:"total_vulnerabilites"`
& 16
Change needed: vulnerabilites -> vulnerabilities

Deepak Sharma added 2 commits April 8, 2021 12:17
@deepak1725 deepak1725 requested a review from yzainee-zz April 8, 2021 06:51
yzainee-zz
yzainee-zz previously approved these changes Apr 8, 2021
Copy link
Member

@yzainee-zz yzainee-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -29,7 +29,7 @@ type DependenciesType struct {
Transitives []DependenciesType `json:"transitives"`
LatestVersion string `json:"latest_version"`
RecommendedVersion string `json:"recommended_version"`
CommonlyKnownVulnerabilities []VulnerabilityType `json:"commonly_known_vulnerabilities"`
CommonlyKnownVulnerabilities []VulnerabilityType `json:"publicly_available_vulnerabilities"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we change the field name as well? @yzainee ?
CommonlyKnownVulnerabilities => PubliclyAvailableVulnerabilities?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it wouldnt matter much in the end. will leave it to @deepak1725

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arajkumar its internal usage only.. I feel it's okay to keep it as it is.
Please let me know if you have strong opinions regarding that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway, included that update also

CommonlyKnownVulnerabilities => PubliclyAvailableVulnerabilities?

@deepak1725 deepak1725 requested a review from yzainee-zz April 8, 2021 08:11
@deepak1725 deepak1725 merged commit 97dfad1 into fabric8-analytics:main Apr 8, 2021
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.

3 participants