Create component for fetching a security finding per uuid from GraphQL
Summary
Create a new component that accepts a finding's uuid, and fetches a security finding via GraphQL. Once loaded it should display the finding. It should also display a loading and error state.
This will ensure flexibility, as the component can be used outside of the modal context as well. It is also extendible since we might need to use it on the vulnerability details page going forward.
GraphQL Query for fetching the finding
query {
project(fullPath:"<project path>") {
pipeline(iid:"<pipeline iid>") {
securityReportFinding(uuid:"<uuid>") {
state
uuid
reportType
}
}
}
}
Edited by David Pisek