Skip to content

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Dec 20, 2019

Given the GraphQL query:

issues(filterBy: {assignee: $assignee})

It turns out that passing a query variable "assignee": null is not equivalent to omitting the variable altogether:

  • "assignee": null seems to filter out issues that have an assignee;
  • omitting assignee correctly returns all issues.

This is good to know for the future too: using "assignee": null we can fetch a list of all unassigned issues, if we ever need to provide that feature.

Update: ah, this behavior is even properly documented in our GraphQL schema:

assignee: String
List issues assigned to given name. Pass in null for issues with no assigned user, and * for issues assigned to any user.

Fixes #185

Given the GraphQL query:

    issues(filterBy: {assignee: $assignee})

It turns out that passing a query variable `"assignee": null` is NOT
equivalent to omitting the variable altogether:

- `"assignee": null` seems to filter out issues that HAVE an assignee;
- omitting `assignee` correctly returns all issues.
@vilmibm vilmibm merged commit ae6eab3 into master Dec 20, 2019
@mislav mislav deleted the issue-list-no-assignee branch December 21, 2019 02:15
Stonre pushed a commit to Stonre/strands-fork that referenced this pull request Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Self-assigned issues not showing in gh issue cmds

3 participants