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

Improve UI #894

Merged
merged 11 commits into from
Sep 7, 2022
Merged

Improve UI #894

merged 11 commits into from
Sep 7, 2022

Conversation

pombredanne
Copy link
Member

This PR applies improvements on top of the PR #847

Reference: #798
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Rename get_package_types() to get_known_package_types()
* Add doctring

Reference: #798
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Reference: #798
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* remove duplicated code
* use same naming conventions of robjects and templates
  for packages and vulnerabilities.
* Use constant for PAGE_SIZE

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
- Use buitin ListView with standard pagination
- More counts and empty logic displays to templates
- Use includes for search boxes and common JS scripts
- Remove search by type. Instead allow using a partial purl with a type
- Format templates to avoid very long lines
- Expand package search to work with all purl attributes including
  non parsing purls. Use case insensitive contains lookup otherwise.
- Expand vulnerability search to use case insensitive contains lookup
  over vcid, aliases, reference ids and summary
- Prefer "VulnerableCode" over "VCIO"

Reference: #798
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Base automatically changed from 798-refine-ui to main September 2, 2022 08:13
@pombredanne pombredanne mentioned this pull request Sep 6, 2022
3 tasks
Remove trailing spaces and format for readability.

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
* Add "severities" property to Vulnerability
  This is traversing severities through the references.
* Remove the "severities" property from a VulnerabilityReference.
* Also use "Fixed by packages" #903

Reference: #903
Reference: #904
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Also handle renaming of vulnd_id to vulnerability_id

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
Copy link
Member Author

All green. We reviewed this in our weekly call yesterday https://github.com/nexB/vulnerablecode/wiki/WeeklyMeetings and this was a go. Merging now!
This closes #798

@pombredanne pombredanne merged commit b922c8f into main Sep 7, 2022
@pombredanne pombredanne deleted the 798-refine-ui-improved branch September 7, 2022 09:03
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.

1 participant