dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Add new policy operator for checking if CPE or PURL not present

Open 2000rosser opened this issue 4 months ago • 1 comments

Description

This change adds a new PolicyCondition operator NOT_PRESENT which can be used with PURL or CPE to evaluate wether or not its present.

I am setting "NOT_PRESENT" forvalue in the frontend because allowsnull is false for value. Wouldn't be very intuitive if creating the condition using REST API, could we change it?

Addressed Issue

#4218

Additional Details

Front end PR https://github.com/DependencyTrack/frontend/pull/1053

Checklist

  • [x] I have read and understand the contributing guidelines
  • [ ] This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • [x] This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • [ ] This PR introduces changes to the database model, and I have added corresponding update logic
  • [ ] This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

2000rosser avatar Oct 09 '24 23:10 2000rosser