Skip to content

Add id, size and expiry date to GraphQL Job Artifact Type

Lee Tickett requested to merge 33418-enhance-graphql-job-artifact into master

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

image

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.

Edited by Lee Tickett

Merge request reports