Add Job Created subscription
What does this MR do and why?
The purpose of this MR is to implement a subscription for the jobs list view Frontend to update the list as soon as
-
ciJobCreatedrequires a globalProjectID to initiate the subscription. - the subscription is triggered when a job is created using the
after_commithook on create - the subscription payload is a Ci::JobType
References
Screenshots or screen recordings
How to set up and validate locally
- Enable FF
ci_job_created_subscription - Visit http://gdk.test:3000/-/graphql-explorer and use the subscription with your project ID
subscription {
ciJobCreated(projectId: "gid://gitlab/Project/36") {
id
status
startedAt
}
}
- Create a new pipeline 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.
Edited by Jose Ivan Vargas
