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

Have consistent labels in UI and API and models for affected and fixed #1520

Closed
TG1999 opened this issue Jul 23, 2024 · 6 comments
Closed

Have consistent labels in UI and API and models for affected and fixed #1520

TG1999 opened this issue Jul 23, 2024 · 6 comments
Labels

Comments

@TG1999
Copy link
Contributor

TG1999 commented Jul 23, 2024

Today we have this (problematic entries are in bold)

  • Package

    • UI- affected by vulnerabilities, fixed by vulnerabilities -> replace by fixing vulnerabilities
    • Models- affected_by, fixing -> do nothing for now, rename to be consistent with UI and API in the future
    • API- affected_by_vulnerabilities , fixing_vulnerabilities
  • Vulnerability

    • UI-affected packages, fixed by packages
    • Models- affected_packages, fixed_by_packages
    • API- affected_packages , fixed_packages -> do nothing for now as renaming to fixed_by_packages would break the API. We should do it when we rev up the API though.

We have several older issues that are closed in favor of this main issue:

@pombredanne
Copy link
Member

pombredanne commented Jul 23, 2024

A survey of other DBs was never reported:

@pombredanne
Copy link
Member

from #1301 (comment) by @mjherzog

It seems that the affect/fix terminology is well-established. I recommend slight changes in wording as follows:

  • A vulnerability is "fixed by" a package.
  • A vulnerability "affects" a package.
  • A package "fixes" a vulnerability.
  • A package is "affected by" a vulnerability.

@pombredanne
Copy link
Member

From #1501 (comment) by @mjherzog :

The terminology is very context dependent as explained by @johnmhoran .
So if we are talking about just the Results page context, then changing "Fixed by vulnerabilites" to "Fixes vulnerabilities" make sense.
On the Essentials page that changes to:

  • Vulnerabilities affecting this package
  • Vulnerabilities fixed by this package
    which makes sense in this context

@pombredanne
Copy link
Member

From #1501 (comment) by @pombredanne

What I see most commonly is "fixed vulnerabilities" from a package point of view, not "fixes vulnerabilities". Juts removing the "by" should be enough

@pombredanne
Copy link
Member

For the record:

  • @johnmhoran pointed that Package "fixing vulnerabilities" is not proper English and we should have used "fixes vulnerabilities", but for now and for the sake of consistency between the API, UI and DB models, we will go with "fixing vulnerabilities".

johnmhoran added a commit that referenced this issue Jul 23, 2024
Reference: #1520
Related prior issue: #1501
Updates: #1519
Signed-off-by: John M. Horan <johnmhoran@gmail.com>
michaelehab pushed a commit to michaelehab/vulnerablecode that referenced this issue Aug 3, 2024
…e-org#1520

Reference: aboutcode-org#1520
Related prior issue: aboutcode-org#1501
Updates: aboutcode-org#1519
Signed-off-by: John M. Horan <johnmhoran@gmail.com>
Signed-off-by: Michael Ehab Mikhail <michael.ehab@hotmail.com>
@pombredanne pombredanne added 1-next and removed 2-next labels Oct 15, 2024
@pombredanne
Copy link
Member

This is completed and merged. Closing!

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

No branches or pull requests

2 participants