-
-
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
#368 Added warningMessages to issue.search() response #369
base: main
Are you sure you want to change the base?
#368 Added warningMessages to issue.search() response #369
Conversation
a0fcac8
to
660f411
Compare
660f411
to
829c8e1
Compare
LGTM, but we may want to have some notification around merging it. It looks like it changes the behavior around search as defined in the code that uses the library and could possibly break peoples code unless they handle for the new output variable. thoughts @andygrunwald |
Thanks for the effort, the PR, and for the enhancement.
About 2), one idea would be to create a new Search function that supports these warning messages. type SearchResult struct {
Issues []issue ...
WarningMessage []messages ...
....
} By this, we would not break the compatibility in the future, if a new field is part of the structure. |
Thanks for asking. In my opinion, adding a new function just to bring the ability to access to hypothetical warning messages could be a bit complex for library consumers... I bet for the 1st one, implement it into v2 refining implementation details first. |
Hey, I am very sorry that this pull request has been open for a long time with no final feedback or merge/decline. 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 pull request?We will work on this pull request indirectly. Final wordsThanks for using and contributing to this library. |
Description
When using Issue.Search(...) response can contain optional field "WarningMessages" that was not implemented in the response struct.
This feature allows to manage possible WarningMessages since jql errors are not rendered as errors but as warning messages.
Without this option, you are unable to find out if your jql query failed because i.e. specified user does not exists.
More information in #368
Information that is useful here:
Example:
Let us know how users can use or test this functionality.
Checklist