Update health status fails
Summary
When updating health status via sidebar on issues, an error banner appears and the update fails.
Steps to reproduce
- Go to an issue
- On the sidebar, select a health status
- Observe red banner
- 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")
- Click "Edit Issues" button on the top right
- Select your issue
- Select the health status
- Click "Update All" at the top
Possible fixes
Edited by charlie ablett