harborapi icon indicating copy to clipboard operation
harborapi copied to clipboard

ArtifactReport.has_* should not rely on the implementation of `with_*`

Open pederhan opened this issue 3 years ago • 0 comments

Why create a whole new report and check its artifacts, when we should just be able to do

return any(artifact.has_foo("...") for artifact in self.artifacts)

We already do this with all has_* methods except has_repository and has_severity.

pederhan avatar Nov 29 '22 15:11 pederhan