Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of deprecated policy tagging endpoints, and add ability to untag policies from *Tags* view #937

Merged
merged 2 commits into from
Jul 6, 2024

Conversation

nscuro
Copy link
Member

@nscuro nscuro commented Jul 6, 2024

Description

Replaces usages of /api/v1/policy/{uuid}/tag/{name} endpoints with /api/v1/tag/{name}/policy, in accordance with DependencyTrack/dependency-track#3924.

Also fixes redundant toasts when removing or adding tags from/to policies.

Adds ability to untag policies from Tags view:

image

The Remove button is visible to users with POLICY_MANAGEMENT permission.

Addressed Issue

Relates to DependencyTrack/dependency-track#586

Additional Details

N/A

Checklist

Replaces usages of `/api/v1/policy/{uuid}/tag/{name}` endpoints with `/api/v1/tag/{name}/policy`, in accordance with DependencyTrack/dependency-track#3924.

Also fixes redundant toasts when removing or adding tags from/to policies.

Signed-off-by: nscuro <nscuro@protonmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added the enhancement New feature or request label Jul 6, 2024
@nscuro nscuro added this to the 4.12 milestone Jul 6, 2024
@nscuro nscuro merged commit 50fbb1f into DependencyTrack:master Jul 6, 2024
10 checks passed
@nscuro nscuro deleted the policy-tags branch July 6, 2024 18:07
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.

1 participant