Skip to content

Add ability to add comments to vulnerability state history entries

Daniel Tian requested to merge 209993-add-commenting-ability into master

What does this MR do?

NOTE: This MR requires that !29437 (merged) be merged first.

This MR adds the ability to add, edit, and delete a comment for a vulnerability state history entry on the standalone vulnerability page:

ksnip_20200414-025446
How the feature works
Peek_2020-04-14_03-03
When there's no comment, it will show the "Add a comment" button
ksnip_20200413-235646
When there's a comment, it will show the comment and the edit/delete buttons
ksnip_20200413-235511
When the edit button is clicked, it will show the textarea to edit the comment and the save and cancel buttons
ksnip_20200413-235031
When the delete button is clicked, it will show the delete confirmation buttons
ksnip_20200413-235646
While the comment is being saved, the textarea, save, and cancel buttons are disabled and a spinner is shown
Screenshot_from_2020-04-14_02-59-45
While the comment is being deleted, the delete and cancel buttons are disabled and a spinner is shown
Screenshot_from_2020-04-14_03-01-40

How to test locally

https://gitlab.com/snippets/1956676

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Daniel Tian

Merge request reports