-
-
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
General Discussion: Features/Changes in V2 #200
Comments
Hello Andy, |
@hdshah-dev I created #248 issue for you. As this is the wrong place to ask for support. For clarification, I'll edit the topic of this issue as well. |
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. |
/unstale. Maybe it is time to think about a v2 more actively. |
Thanks, @ghostsquad for kicking this off. Valuable to exchange about the plans for v2. I would like to extend the discussion on this issue and discuss pieces next to breaking changes: Being more explicitWe should state what we are officially supporting when it comes to Jira (Product variant, product version extensions/plugins, ...), Go and similar. Issues like can help here. Potential of
|
@andygrunwald just wanted to let you know that I've decided to start on the V2 rewrite! I'm going to use the Stay tuned for a PR! |
@ghostsquad Sounds super nice! Let me know how I can help (or review something). Feel free to push early ideas as a PR and mark it as a draft. |
@andygrunwald VERY EARLY draft PR has been made. I literally just did |
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. |
Adding a few notes from my desk about the features we aim to put into v2/wishlist:
|
I would like to see some of the APIs that require Example: // GetAllSprints wraps GetAllSprintsWithContext using the background context.
func (s *BoardService) GetAllSprints(boardID string) ([]Sprint, *Response, error) {
return s.GetAllSprintsWithContext(context.Background(), boardID)
}
// --snip--
// GetAllSprintsWithOptions wraps GetAllSprintsWithOptionsWithContext using the background context.
func (s *BoardService) GetAllSprintsWithOptions(boardID int, options *GetAllSprintsOptions) (*SprintsList, *Response, error) {
return s.GetAllSprintsWithOptionsWithContext(context.Background(), boardID, options)
} |
|
Do you have a bit more information on what this means for a library and how we can support this? |
@andygrunwald Sure |
Thanks @jason-barbier-tcc. |
@andygrunwald yep, multiple or different ways to retrieve users due to a change to make it easier to comply with GDPR. |
Thanks, @jason-barbier-tcc. |
Hey all, i used this issue as a foundation to create own tickets per request.
I dropped the following items, because they are a bit unclear what the current issue is:
There are more tickets, see https://github.com/andygrunwald/go-jira/issues?q=is%3Aopen+is%3Aissue+label%3Av2 |
See also #489 |
Overview
This issue is to discuss what kind of breaking changes we want in V2.
We have several PRs that can't be merged in V1 due to backwards incompatibility.
I'll start with my wishlist:
nil
for optional parameters (this is an anti-pattern)If a nil httpClient is provided, http.DefaultClient will be used.
Alternative:
https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis
pkg/errors.Errorsf
instead offmt.Errorsf
To Be Continued... as I review more
Custom Fields
https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/
https://docs.atlassian.com/software/jira/docs/api/REST/8.0.2/#api/2/customFields-getCustomFields
Custom fields are defined here. It would be useful have definitions for each customField type, and additional points for being able to generate code for a project based on the custom fields defined for that project. I have yet to encounter a Jira Library that makes working with custom fields an enjoyable experience.
The text was updated successfully, but these errors were encountered: