Add GraphQL API to delete resource links
What does this MR do and why?
This MR adds a GraphQL API to delete resource links from an incident. Currently, there is no frontend development for this. This change is behind a feature flag.
Screenshots or screen recordings
Mutation | Result |
---|---|
Mutation
mutation DeleteIssuableResourceLink($input: IssuableResourceLinkDestroyInput!) {
issuableResourceLinkDestroy(input: $input) {
issuableResourceLink {
id
issue { id title }
link
linkText
linkType
}
errors
}
}
Query variables
{
"input": {
"id": "<IssuableResourceLink global id to delete>"
}
}
How to set up and validate locally
- Add an issuable resource link by following the steps mentioned in Create API MR of this feature.
- Copy the link global id of the link.
- Paste in the above mutation example.
- Check the delete response and confirm from
rails c
by runningIncidentManagement::IssuableResourceLink.all
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #363338 (closed)
Edited by Rajendra Kadam