Add notes and discussions to Vulnerability GraphQL type
See Design Issue and parent Epic for details.
Implementation Plan
-
update VulnerabilityType
GraphQL type-
add discussions
field -
add notes
field
-
Technical Notes
- We need to add the
Types::Notes::NoteableType
interface toVulnerabilityType
type like so;implements(Types::Notes::NoteableType)
. - We also need to update the
Types::Notes::NoteableType#resolve_type
to make it working withVulnerabilityType
. - Similar approach can be found for
IssueType
here: https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/graphql/types/issue_type.rb#L7
Edited by Mehmet Emin INAC