Skip to content

Generalized weights in API

Summary

It looks like Issue weights are still limited in the API:

 StatusCodeError: 400 - {"error":"weight does not have a valid value"}

https://gitlab.com/gitlab-org/gitlab-ee/blob/master/lib/api/issues.rb#L58

Steps to reproduce

Attempt to change the weight of an issue to any value > 9

What is the current bug behavior?

Returns and error

 StatusCodeError: 400 - {"error":"weight does not have a valid value"}

What is the expected correct behavior?

Only throw an error if the value is not an integer

Relevant logs and/or screenshots

 StatusCodeError: 400 - {"error":"weight does not have a valid value"}

Results of GitLab environment info

gitlab.com

Edited by Victor Wu