Skip to content

fix(allocate): record who allocated a CVE in the history - #295

Open
Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/248-record-cve-allocator
Open

Anurag-S1ngh wants to merge 1 commit into
apache:mainfrom
Anurag-S1ngh:fix/248-record-cve-allocator

Conversation

@Anurag-S1ngh

Copy link
Copy Markdown

Summary

Writes a history entry when a CVE is allocated, so the history shows who allocated it and contains the initial title and body.

Changes

  • Store __v, createdAt, and updatedAt on newly allocated records
  • Insert a creation history entry using the same shape as normal saves
  • Expose the history collection on the docs module
  • Extend unittest/allocatecve.js to cover the history entry

Testing

  • npm run unittest: passes

Closes #248

@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.

very nice

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.

record who allocated a CVE

2 participants