Skip to content

Add createdAt to Runner GraphQL API

Miguel Rincon requested to merge 347856-runner-graphql-created-at into master

What does this MR do and why?

Part of #347856 (closed)

Add createdAt to Runner GraphQL API

Why this change?

Our designs at require displaying a creation time for our runners: #347856 (closed)

Screen_Shot_2022-01-05_at_11.00.11_AM

Screenshots or screen recordings

image

How to set up and validate locally

  1. Visit the GraphQL explorer http://gdk.test:3000/-/graphql-explorer
  2. Use this example GraphQL query:
fragment RunnerNode on CiRunner {
  id
  description
  createdAt
}

query getRunners($before: String, $after: String, $first: Int, $last: Int, $status: CiRunnerStatus, $type: CiRunnerType, $tagList: [String!], $search: String, $sort: CiRunnerSort) {
  runners(before: $before, after: $after, first: $first, last: $last, status: $status, type: $type, tagList: $tagList, search: $search, sort: $sort) {
    nodes {
      ...RunnerNode
    }
  }
}

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #347856 (closed)

Edited by Miguel Rincon

Merge request reports