Add new fields for to jobs in CI config GraphQL API

Description

As part of moving the lint and visualization functionality to GraphQL we want do add more fields that belong to the CiConfigJob entity in the API.

These are some examples of fields we have in our current lint feature:

  • script (beforeScript, script, afterScript)
  • tagList / tags
  • only
  • except
  • environment
  • when
  • allow_failure

Example

Lint config is currently displayed in a table format like this, in a list of jobs or with their details in front of them:

image

This table may change formats/styles but we have identified that information in these fields will be useful for users to see details about their CI Config.

Iteration proposal

  • We could work on smaller groups of fields (or just one field at a time!) so we can iterate faster, in case one or more of these fields is more difficult to implement.

Why work on this?

With the lint functionality is migrated to the new editor page, we want to have feature parity be showing the fields in the current CI Lint.

Edited by Miguel Rincon