Fix GraphQL API for clearing issue contacts
What does this MR do and why?
Fix GraphQL API for clearing issue contacts
The API was handling: adding, removing and setting a new list, but not setting an empty list (e.g. clearing/removing all).
Changelog: fixed
Screenshots or screen recordings
Before:
After:
How to set up and validate locally
- Create an issue in the project
- Enable CRM
- Create a test contact
- Add a new contact to the issue
- Run the below GraphQL query https://gdk.test:3000/-/graphql-explorer
mutation { issueSetCrmContacts(input: { projectPath: "flightjs/mood-test" iid: "1" contactIds: [] operationMode: REPLACE }) { errors issue { customerRelationsContacts { nodes { firstName } } } } }
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 #427038 (closed)