Skip to content

Add customizable placeholder texts for create and audit forms - #7118

Open
heyiamwahab236 wants to merge 1 commit into
DependencyTrack:4.14.xfrom
tecan:feature/audit-text-placeholders
Open

heyiamwahab236 wants to merge 1 commit into
DependencyTrack:4.14.xfrom
tecan:feature/audit-text-placeholders

Conversation

@heyiamwahab236

Copy link
Copy Markdown

Description

Organizations often have internal conventions for how vulnerability descriptions,
recommendations, and audit analyses should be written. The forms currently offer no
way to surface such guidance.

Adds admin-configurable placeholder texts for the create vulnerability form
(description, detail, recommendation, references) and the audit form (comment,
analysis details instruction), managed via GET/PUT /v1/customization/text-placeholders.
All values are stored as standard config properties. The feature is off by default;
when disabled, forms are unchanged.

Addressed Issue

fixes #7116

Additional Details

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 updated the migration changelog accordingly
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly
  • This PR is a substantial change (per the ADR criteria), and I have added an ADR under docs/adr/

Organizations often have internal conventions for how vulnerability
descriptions, recommendations, and audit analyses should be written.
The forms currently offer no way to surface such guidance.

Adds admin-configurable placeholder texts for the create vulnerability
form (description, detail, recommendation, references) and the audit
form (comment, analysis details instruction), managed via
GET/PUT /v1/customization/text-placeholders. All values are stored as
standard config properties. The feature is off by default; when
disabled, forms are unchanged.

Signed-off-by: Abdul wahab Shah <214828401+heyiamwahab236@users.noreply.github.com>
@owasp-dt-bot

Copy link
Copy Markdown

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

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 24 complexity

Metric Results
Complexity 24

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.

@heyiamwahab236

Copy link
Copy Markdown
Author

Companion frontend PR: DependencyTrack/frontend#1777

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants