Add job field to ProjectType
What does this MR do and why?
This MR adds a job
field to ProjectType
so we can use GraphQL on the job detail pages
Screenshots or screen recordings
Query:
Result:
How to set up and validate locally
-
Get a project path and a job ID from the same project.
-
Using the Rails console, get the job global ID with
job.to_global_id
. -
Make the following query in
/-/graphql-explorer
query { project(fullPath: "PROJECT_PATH") { job(id: "GLOBAL_JOB_ID") { name } } }
-
See that the result includes the job name
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.
Related to #372868 (closed)