Add GraphQL subscription for milestone assignment
What does this MR do and why?
This MR add a GraphQL subscription for issuable milestone updates and its trigger in the backend. Related to #367463 (closed).
How to set up and validate locally
There is no quick way to validate an instance of the added subscription without adding a feature spec which must be added in a separate MR due to our rolling deployment practice. #370822 has been created as a spike issue for GraphQL subscription integration tests.
GraphiQL doesn't support ActionCable. See https://github.com/rmosolgo/graphql-ruby/issues/1045#issuecomment-338306779 and https://github.com/rmosolgo/graphql-ruby/issues/1051.
subscription onIssuableMilestoneUpdated {
issuableMilestoneUpdated(issuableId: "gid://gitlab/Issue/367463") {
... on Issue {
milestone {
id
}
}
}
}
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 euko