Add pipeline schedules subscription
What does this MR do and why?
Adds the ciPipelineScheduleStatusUpdated
subscription where users/clients can subscribe to a project and get realtime updates on any pipeline schedule, if the last pipeline status changes. The subscription returns single schedule objects at a time, if the last pipeline status was updated.
References
Screenshots or screen recordings
How to set up and validate locally
- Enable FF
ci_pipeline_schedules_status_realtime
- Create a pipeline schedule (or multiple to help with testing)
- Visit http://gdk.test:3000/-/graphql-explorer and use the subscription with your project ID
subscription {
ciPipelineScheduleStatusUpdated(projectId: "gid://gitlab/Project/19") {
id
lastPipeline {
detailedStatus {
id
}
}
}
}
- Trigger the schedule and watch data update in the explorer and network tab (sockets)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #560596 (closed)
Edited by Payton Burdette