Update health status fails

Summary

When updating health status via sidebar on issues, an error banner appears and the update fails.

image

Steps to reproduce

  1. Go to an issue
  2. On the sidebar, select a health status
  3. Observe red banner
  4. Reload. No update.

Example Project

This is the issue I tested it on: issue-reproduce/charliecharlie123#10

What is the current bug behavior?

The health status does not update, and a red banner appears.

What is the expected correct behavior?

The health status should update with no error.

Relevant logs and/or screenshots

Browser info for updating issue-reproduce/charliecharlie123#10

Request payload
[{"operationName":null,"variables":{"healthStatus":"onTrack","projectPath":"issue-reproduce/charliecharlie123","iid":"10"},"query":"mutation ($projectPath: ID!, $iid: String!, $healthStatus: HealthStatus) {\n  updateIssue(input: {projectPath: $projectPath, iid: $iid, healthStatus: $healthStatus}) {\n    issue {\n      healthStatus\n      __typename\n    }\n    errors\n    __typename\n  }\n}\n"}]

JSON output:

JSON response body
[{"errors":[{"message":"InputObject 'UpdateIssueInput' doesn't accept argument 'healthStatus'","locations":[{"line":2,"column":61}],"path":["mutation","updateIssue","input","healthStatus"],"extensions":{"code":"argumentNotAccepted","name":"UpdateIssueInput","typeName":"InputObject","argumentName":"healthStatus"}},{"message":"Variable $healthStatus is declared by anonymous mutation but not used","locations":[{"line":1,"column":1}],"path":["mutation"],"extensions":{"code":"variableNotUsed","variableName":"healthStatus"}}]}]

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Workaround

  • Go to issue list (in the breadcrumbs, click "Issues")

image

  • Click "Edit Issues" button on the top right

image

  • Select your issue

image

  • Select the health status

image

  • Click "Update All" at the top

image

Possible fixes

Edited by charlie ablett