-
-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SearchOptions {MaxResults: 0} doesn't work #299
Comments
Though just removing |
@andygrunwald prior to version 2.0, I think we can just start implementing "Functional Options" variants of all methods, and mark the old methods as deprecated. |
@ghostsquad Could be an idea. Or we just start with v2 and see if we can skip adjusting v1. |
This issue has been automatically marked as stale because it has not had recent activity in the last 60 days. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Hey, I am very sorry that this issue has been open for a long time with no final solution. We work on this project in our spare time, and sometimes, other priorities take over. This is the typical open source dilemma. However, there is news: We are kicking off v2 of this library 🚀To provide visibility, we created the Road to v2 Milestone and calling for your feedback in #489 The development will take some time; however, I hope you can benefit from the changes. What does this mean for my issue?We will work on this issue indirectly. Final wordsThanks for using this library. |
Describe the bug
SearchOptions{ MaxResults:0 }
doesn't work. The API actually allows it and it's useful to get just the metadata.Expected behavior
No
Issue
returned if queried withSearchOptions{ MaxResults:0 }
Possible Solution
Remove
omitempty
fromMaxResults
go-jira/issue.go
Lines 500 to 510 in f50cb07
and tweak
if
conditions.go-jira/issue.go
Lines 1049 to 1051 in f50cb07
go-jira/issue.go
Lines 1094 to 1096 in f50cb07
Your Environment
go version
): 1.14.2The text was updated successfully, but these errors were encountered: