Skip to content

fix(asf): notify the security team when a record is rejected - #301

Open
Anurag-S1ngh wants to merge 2 commits into
apache:mainfrom
Anurag-S1ngh:fix/199-notify-rejected
Open

Anurag-S1ngh wants to merge 2 commits into
apache:mainfrom
Anurag-S1ngh:fix/199-notify-rejected

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

Sends the existing state-change notification when a CVE 5 or CVE 4 record is moved to REJECTED, since that needs a manual security team action.

Changes

  • Include REJECTED in the notification states in custom/asf.js
  • Cover the REJECTED transition and a quiet transition in unittest/asfacl.js

Testing

  • npm run unittest: passes
  • The new assertions fail without the change

Closes #199

@raboof raboof left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The tests are cool, but also somewhat of a maintenance/complexity burden and risk (it'd be tricky if after an update the test would start actually emailing). I think the change is simple enough to go without those tests.

@Anurag-S1ngh

Copy link
Copy Markdown
Author

Removed the tests, the PR now only has the notification change.

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.

notification email on state change to REJECTED

2 participants