Generate expected Vuln Details Display Schema for FE consumption
Why are we doing this work
Part of delivering the parent Epic's expected outcome item 4 is to render the UI of the Vulnerability Details page in the style defined according to mock ups in the design issue #267193[a2-Vuln-Details-Page_generic-schema-evidence-expandable.png]. In order to do this, the backend will need to deliver the vulnerability data in an expected, agreed upon format.
This display report schema, henceforth known as the Vuln Details Display Schema, facilitates the dynamic display of the components based on the data associated with a vulnerability. This issue represents the work required to generate that schema based on the requirements defined in #285141 (closed).
Non-functional requirements
- Security: report content to be treated as untrusted input lest it be used to inject HTML into the page.
Implementation plan
-
backend Adjust
ee/app/helpers/vulnerabilities_helper.rb
so that it returns details using schema outlined in #285141 (closed) -
backend Adjust
ee/app/serializers/vulnerabilities/finding_entity.rb
so that it returns details using schema outlined in #285141 (closed)
Edited by Michał Zając