GraphQL: Return latest job in Pipeline.job
What does this MR do and why?
Currently, doing a graphql query on Pipeline.job will always return the first job with the given name inside the pipeline, ignoring potential retries. This is kind of confusing - one would expect that after retrying a job, this new instance of the job would be returned by the job
endpoint.
This MR changes job
to return the latest job with the given name inside the pipeline.
Edited by Robin Lambertz