Add support for IS_INTERNAL policy condition#511
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 8 |
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.
There was a problem hiding this comment.
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.vueto render a dedicated UI forIS_INTERNALand serialize its boolean value as"true"/"false"for the API. - Update operator/subject handling to recognize
IS_INTERNAL. - Add
message.internal_statusi18n 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.
Ports DependencyTrack/frontend#1394 Co-authored-by: ch8matt <g.matthieu49@gmail.com> Signed-off-by: nscuro <nscuro@protonmail.com>
There was a problem hiding this comment.
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.
Description
Ports DependencyTrack/frontend#1394
Addressed Issue
Relates to DependencyTrack/hyades#2105
Additional Details
N/A
Checklist
This PR introduces new or alters existing behavior, and I have updated the documentation accordingly