Skip to content

Fix jobs panel KeyErrors

Jonathan Howard requested to merge 289-keyerror-on-deltasbom-plugin into dev

Checklist

  • documentation is changed or added in ./docs
  • unit tests updated to test changes

Description

Layout

  • Use dict.get() for job ID lookup instead of direct indexing, return None if task not found in HopprLayout.job_id_map

Utils

  • hoppr.utils.plugin_instance: if instance's supported_purl_types is empty list, populate list with all PURL types before returning

Processor

  • Skip adding plugin to jobs panel if the class doesn't have a collect method defined, but still add it to stage's plugin_ref_list

Miscellaneous

  • Refactor bundle_tar.py to use pathlib and simplify logic
  • Update PurlType enum member names' casing for future console output use. Preserve existing functionality by adding __str__() and _missing_() methods

Closes #289 (closed)

Merge request reports