Skip to content

Add ability to comment notes created for vulnerabilities

What does this MR do?

Related to #209993 (closed)

In this MR we add the ability in the application to comment notes and initiate discussions in Vulnerabilities.

Examples:

Comment note in Vulnerability:

Request: POST /root/security-reports/-/security/vulnerabilities/45/notes

Body:

{
    "in_reply_to_discussion_id": "7c624576b9354b3b394c21ba0436c2d88921f6da",
    "note": {
        "note": "I do not believe it should be dismissed!"
    }
}

Update note in Vulnerability:

Request: PUT /root/security-reports/-/security/vulnerabilities/45/notes/1410

Body:

{
    "note": {
        "note": "I do not believe it should be dismissed!"
    }
}

Delete note in Vulnerability:

Request: DELETE /root/security-reports/-/security/vulnerabilities/45/notes/1410

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Mayra Cabrera

Merge request reports