Skip to content

fix(cve5): only show the advisory field for opted-in PMCs - #299

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/179-advisory-opt-in
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/179-advisory-opt-in

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

Hides the Advisory field unless the PMC is on the allowlist, which starts with struts. Existing values are left alone.

Changes

  • Add showAdvisoryField in custom/cve5/script.js
  • Hide the advisory schema field before the editor loads in custom/cve5/edit.pug
  • Add assertions to unittest/validation.js

Testing

  • npm run unittest: passes
  • Template compiles

Closes #179

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.

Make 'Advisory' field opt-in

1 participant