Unable to filter issues without an Assignee via the API
Summary
Unable to filter issues without an Assignee
Steps to reproduce
curl https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/issues?assignee_id=0
curl https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/issues?assignee_id=No%20Assignee
Example Project
curl https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab-ce/issues?assignee_id=0
What is the current bug behavior?
Filtering on no assignee yields 0 results
What is the expected correct behavior?
Filtering with assignee_id
0 should yield all unassigned issues
Relevant logs and/or screenshots
Output of checks
reproduced on GitLab.com v10.2.4
Possible fixes
The Issues API accepts an integer value that represents the Assignee ID:
The IssuesFinder compares the integer value with a string which always proves false: