Skip to content

Draft: Fix console error for CI variable mutations

Mireya Andres requested to merge fix/create-ci-var-console-error into master

What does this MR do and why?

Fix for #416589

The following console error shows up when creating or updating CI variables for groups and projects:

console error

This occurs because we are using a client resolver for mutations and not passing limit when writing to the cache. This number does not change from the initial fetch during mutations, so it's just a matter of making sure we include limit when writing to the cache.

Screenshots or screen recordings

Before After
before after

How to set up and validate locally

  1. For your project/group, go to Settings > CI/CD > Variables.
  2. Click on the Add Variable button at the bottom of the table and fill in the form to create a CI variable.
  3. Verify that the variable is create and no console error shows up in the console log.

MR acceptance checklist

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

Merge request reports