Skip to content

Use AssigneeIDValue for ListGroupIssuesOptions.AssigneeID

client-go commit 1cae3bc6 ("Update definitions in
ListGroupIssuesOptions") switched the Assignee ID field from an
*AssigneeIDValue to an *int. This was likely done based on a dump of the
attributes [1].

This change did not take into account the history of the existing code
base. The reason that AssigneeID is not an int is that it has multiple
values: The ID of an assignee, None (to indicate no assignee), or Any (to
indicate any assignee).

The AssigneeIDValue type, UserIDAny, and UserIDNone were added so that the
issues?assignee_id entry point could take a user ID, or the 'any' or
'None' values. The change to switch to *int has broken that functionality
so that it is no longer possible to use 'Any' or 'None' when listing
issues in a project.

Use *AssigneeIDValue instead of *int for ListGroupIssuesOptions.AssigneeID.
This allows the use of and Assignee ID, 'Any', or 'None' as specified in [1].

[1] https://docs.gitlab.com/api/issues/#list-issues

Signed-off-by: Prarit Bhargava prarit@redhat.com

Closes #2108 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading