Skip to content

Add or delete comment through GraphQL

Savas Vedova requested to merge 395618-use-graphql-to-update-comment into master

What does this MR do and why?

Since we are deprecating vulnerability feedbacks, we now need to use GraphQL to mutate the state comment of a finding. This MR adds that functionality.

Screenshots or screen recordings

Adding a state comment:

add-state-comment

Editing a state comment:

edit-comment

Deleting a state comment:

delete-state-comment

How to set up and validate locally

  1. Fork https://gitlab.com/gitlab-examples/security/security-reports/
  2. Enable feature flag: refactor_security_extension
  3. Create an MR
  4. Go the MR page and try adding, deleting, editing a state comment

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #395618 (closed)

Merge request reports