Add mutation to convert note to thread
What does this MR do and why?
Adds a GraphQL endpoint to convert standard comments to resolvable threads.
Currently, the only way to convert to a thread is to create a reply under a comment, then the parent is automatically converted. We want this explicit conversion for work items because we plan to make standard comments resolvable in work items. See thread in #458818 (comment 2012341797) for more details
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
Sample mutation:
mutation {
noteConvertToThread(input: { id: "gid://gitlab/Note/2155" }) {
note {
id
}
}
}
You can then verify in the UI that it is now a resolvable discussion thread.
Related to #458818 (closed)
Edited by Heinrich Lee Yu