Extend Vulnerability API with `details` field from `Vulnerabilities::Finding` model
Why are we doing this work
This is the only backend work needed for "Generic Security Reports" MVP. You check the &4466 (closed) for more information.
This issue is about extending GraphQL API and REST API (if needed) with new fields needed to render details on single vulnerability page. This issue was extracted from #263497 (closed).
Relevant links
Implementation plan
-
backend Expose this new field to frontend on GraphQL API: -
backend Implement new VulnerabilityDetailedFieldType
(similar to https://gitlab.com/gitlab-org/gitlab/blob/3d743738faff46bf8dd221efa8271e1f38644ad5/ee%2Fapp%2Fgraphql%2Ftypes%2Fvulnerability_location_type.rb#L4) that will be an union of types for defined field types: ([named_list
,list
,table
,text
,url
,code
,int
,commit
,file_location
,module_location
]) and add new field toVulnerabilityType
that will useVulnerabilityDetailedFieldType
-
Edited by Alan (Maciej) Paruszewski