Skip to content

feat: add invertTagMatch property to Policy and update PolicyResource#5041

Open
arjavdongaonkar wants to merge 5 commits into
DependencyTrack:masterfrom
arjavdongaonkar:feature/invert-tag-match
Open

feat: add invertTagMatch property to Policy and update PolicyResource#5041
arjavdongaonkar wants to merge 5 commits into
DependencyTrack:masterfrom
arjavdongaonkar:feature/invert-tag-match

Conversation

@arjavdongaonkar
Copy link
Copy Markdown
Contributor

@arjavdongaonkar arjavdongaonkar commented Jun 11, 2025

Description

Introduce a boolean flag invertTagMatch to allow policies to apply to all projects, excluding those with the selected tags.

Addressed Issue

Policies apply to projects with selected tags. There's no way to apply a policy to all projects except those with specific tags, making exclusion use cases cumbersome.

Checklist

  • 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
  • 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

@owasp-dt-bot
Copy link
Copy Markdown

owasp-dt-bot commented Jun 11, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

@jakub-bochenski
Copy link
Copy Markdown
Contributor

Is this PR going to be merged any time soon?

Signed-off-by: Arjav <arjavdongaonkar@gmail.com>
Signed-off-by: Arjav <arjavdongaonkar@gmail.com>
Signed-off-by: Arjav <arjavdongaonkar@gmail.com>
Signed-off-by: Arjav <arjavdongaonkar@gmail.com>
@arjavdongaonkar arjavdongaonkar force-pushed the feature/invert-tag-match branch from 2c9d32a to e913ca1 Compare August 8, 2025 05:38
@arjavdongaonkar
Copy link
Copy Markdown
Contributor Author

FE PR: DependencyTrack/frontend#1275

@arjavdongaonkar
Copy link
Copy Markdown
Contributor Author

Is this PR going to be merged any time soon?

Awaiting action from Maintainers

@nscuro nscuro added the enhancement New feature or request label Aug 26, 2025
@nscuro nscuro added this to the 4.14.0 milestone Aug 26, 2025
@codacy-production
Copy link
Copy Markdown

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.03% (target: -1.00%) 100.00% (target: 70.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (3e82534) 23973 19386 80.87%
Head commit (fe1c828) 23977 (+4) 19382 (-4) 80.84% (-0.03%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#5041) 5 5 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants