Add GraphQL Todoable interface for to-do targets
What does this MR do and why?
This MR adds a new Todoable GraphQL interface that represents the target of a to-do item. That way, the GraphQL to-do definition is more complete and includes a target just like the to-do REST API. It is also needed to migrate the to-do system to Vue (see #344777 (closed)) and subsequently to complete the todo dropdown in !63256 (closed).
Screenshots or screen recordings
How to set up and validate locally
- Have at least one todo
- Go to the GraphQL explorer (
/-/graphql-explorer) - Use the following query
{ currentUser { todos { nodes { body target { webUrl ... on Issue { title } } } } } } - See the
targeton your todo with itswebUrl
And if the target of your todo is an issue: - See the
titleon thetargetas well
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.
Edited by Kev