Skip to content
This repository was archived by the owner on May 30, 2026. It is now read-only.

Add support for IS_INTERNAL policy condition#511

Merged
nscuro merged 1 commit into
mainfrom
port-pr-1394
May 4, 2026
Merged

Add support for IS_INTERNAL policy condition#511
nscuro merged 1 commit into
mainfrom
port-pr-1394

Conversation

@nscuro

@nscuro nscuro commented May 4, 2026

Copy link
Copy Markdown
Member

Description

Ports DependencyTrack/frontend#1394

Addressed Issue

Relates to DependencyTrack/hyades#2105

Additional Details

N/A

Checklist

@nscuro nscuro added this to the 5.7.0 milestone May 4, 2026
Copilot AI review requested due to automatic review settings May 4, 2026 16:51
@nscuro nscuro added enhancement New feature or request v4-port PRs that were ported from the Dependency-Track v4.x code base labels May 4, 2026
@codacy-production

codacy-production Bot commented May 4, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 8 complexity

Metric Results
Complexity 8

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds frontend support for the new IS_INTERNAL policy condition subject (ported from DependencyTrack/frontend), enabling policies to match components based on their “internal” classification.

Changes:

  • Extend PolicyCondition.vue to render a dedicated UI for IS_INTERNAL and serialize its boolean value as "true"/"false" for the API.
  • Update operator/subject handling to recognize IS_INTERNAL.
  • Add message.internal_status i18n key (English text + null placeholders for other locales).

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/views/policy/PolicyCondition.vue Adds IS_INTERNAL subject support, UI branch, and boolean (de)serialization logic.
src/i18n/locales/en.json Adds English translation for message.internal_status.
src/i18n/locales/de.json Adds message.internal_status placeholder (null).
src/i18n/locales/es.json Adds message.internal_status placeholder (null).
src/i18n/locales/fr.json Adds message.internal_status placeholder (null).
src/i18n/locales/hi.json Adds message.internal_status placeholder (null).
src/i18n/locales/it.json Adds message.internal_status placeholder (null).
src/i18n/locales/ja.json Adds message.internal_status placeholder (null).
src/i18n/locales/pl.json Adds message.internal_status placeholder (null).
src/i18n/locales/pt.json Adds message.internal_status placeholder (null).
src/i18n/locales/pt-BR.json Adds message.internal_status placeholder (null).
src/i18n/locales/ru.json Adds message.internal_status placeholder (null).
src/i18n/locales/uk-UA.json Adds message.internal_status placeholder (null).
src/i18n/locales/zh.json Adds message.internal_status placeholder (null).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/views/policy/PolicyCondition.vue
Comment thread src/views/policy/PolicyCondition.vue Outdated
Comment thread src/views/policy/PolicyCondition.vue Outdated
Comment thread src/views/policy/PolicyCondition.vue
Comment thread src/views/policy/PolicyCondition.vue
Ports DependencyTrack/frontend#1394

Co-authored-by: ch8matt <g.matthieu49@gmail.com>
Signed-off-by: nscuro <nscuro@protonmail.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/views/policy/PolicyCondition.vue
Comment thread src/views/policy/PolicyCondition.vue
Comment thread src/i18n/locales/en.json
@nscuro nscuro merged commit 7ff2853 into main May 4, 2026
10 checks passed
@nscuro nscuro deleted the port-pr-1394 branch May 4, 2026 17:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request v4-port PRs that were ported from the Dependency-Track v4.x code base

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants