Add id, size and expiry date to GraphQL Job Artifact Type
What does this MR do and why?
This MR adds size
and expireAt
fields to Ci::JobArtifactType
to support some frontend changes planned in #33418 (closed)
I also added the id
so we can use it for the delete mutation we'll be adding shortly
Screenshots or screen recordings
How to set up and validate locally
https://gdk.test:3000/-/graphql-explorer
query getJobArtifacts {
project(fullPath: "gnuwget/wget2") {
jobs(statuses: [SUCCESS, FAILED]) {
nodes {
id
pipeline {
id
}
artifacts {
nodes {
id
size
expireAt
}
}
}
}
}
}
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 Lee Tickett