Use 'vulnerabilityExternalIssueLinkCreate' mutation for creating a Jira issue on vulnerability modal on Pipeline Security Tab
Why are we doing this?
This is a follow up Issue from !60593 (merged).
Currently we are using a link, provided by the backend, to create new Jira issues: On the Vulnerability Modal, which is to be found on the Pipelines Page in the Security Tab.
Create Jira Issue |
---|
In order to move the vulnerability detail page to GraphQL we need to use the vulnerabilityExternalIssueLinkCreate
mutation to create the Jira issue. But to do that we need the Vulnerability ID, which is currently not included in the BE responses but will be as soon as #300753 (closed) is solved.
!60593 (merged) introduces ee/spec/frontend/vue_shared/security_reports/components/create_jira_issue_spec.js
which will take care of the GraphQL implementation for the Vulnerability modal. What's left to do is to consume ee/spec/frontend/vue_shared/security_reports/components/create_jira_issue_spec.js
from ee/app/assets/javascripts/vue_shared/security_reports/components/modal_footer.vue
Relevant links
Epic | &4969 (closed) |
Design issue | #8942 (closed) |
Non-functional requirements
-
Documentation: screenshots need to be updated and text modified if necessary -
Testing: tests need to be updated
Implementation Plan
-
Change ee/app/assets/javascripts/security_dashboard/components/vulnerability_action_buttons.vue
to use the mutation from the example above -
Display a loading state on the button -
Reload related Jira issues once finished -
In case of error show a error-banner