You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add pyinstrument to debug mode
Reference:#1538
Signed-off-by: Philippe Ombredanne <[email protected]>
* Apply minor cosmetic models.py changes
Remove unused imports
Move univers monkey patching to top level
Reference:#1538
Signed-off-by: Philippe Ombredanne <[email protected]>
* Annotate queryset for is_vulnerable
* is_vulnerable is now a queryset annotation.
* with_is_vulnerable Package manager method annotates the queryset
* It is now called anywhere needed.
The results with a single API call to
http://127.0.0.1:8001/api/packages/63 are:
* before 1.7 sec
* after 0.25 sec
Or an improvement where the old is 6.8 times slower than the new.
Reference:#1538
Signed-off-by: Philippe Ombredanne <[email protected]>
* Improve sorting of packages by version
* simplify sorting code, revert to using lists
* use cached_property where relevant
Reference:#1538
Signed-off-by: Philippe Ombredanne <[email protected]>
* Annotate queryset for is_vulnerable everywhere
* Fix how we find vulnerable and non vulnerable versions
* Complete using is_vulnerable in relevant querysets.
* Adjust tests for clarity and DRY using small method to make the tests
setup easier to read
* Use proper typing annotation for PackageURL or str
* Add new Package manager from_purl() method to create a Package from
a PURL
Reference:#1538
Signed-off-by: Philippe Ombredanne <[email protected]>
* Do not print things in tests
Signed-off-by: Philippe Ombredanne <[email protected]>
---------
Signed-off-by: Philippe Ombredanne <[email protected]>
0 commit comments