-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Add support for context #276
Add support for context #276
Conversation
3428339
to
b39c862
Compare
@suhaibmujahid this is great! thank you. I'll be reviewing this over the weekend. |
@ghostsquad great, please let me know if you want me to perform any changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your time and effort @suhaibmujahid.
This PR is huge and moves the project into a better direction.
I went through it and made a few comments. I am sure I missed a few spots. You know how it is when such a big PR lands ("it is fine" ;)).
Two topics are coming into my mind, reviewing this (next to the comments):
Godocs
Nearly all comments are renamed from <NAME>
to <NAME>WithContext
. The godoc is not adjusted, means, it still says // <NAME> ....
. This leads to complaining go tooling because the comments don't start with // <NAME>WithContext ....
.
Do you see any possibility that we can get this adjusted?
Unit tests
We don't have a single unit test for the <NAME>WithContext
functions.
As far as I can see, they are simply copies and are implicit tested by the original unit tests.
But from my experience, bugs can happen everywhere. Not sure if we should copy all unit tests if this is useful or ends up in bloat code.
What do you think about this?
Additionally, I merged a few other PRs in the meantime which leads to a small merge conflict.
Can you resolve this?
Thanks again. Much appreciated!
b39c862
to
896966f
Compare
Co-authored-by: Andy Grunwald <andygrunwald@gmail.com>
6444fba
to
3b4da42
Compare
Thank you @andygrunwald for the code review. I did rebase based on the master, solve the conflicts, fixed the comments for Godocs, and incorporated your other suggestions. For unit tests, I do not think we need to do anything for now for the following reasons:
Thanks again! |
Thanks @suhaibmujahid. From now, I don't see anything that we will break. If we break something, we will either fix it and move forward or roll it back and see what happens. In the end, it is still a huge PR. Thanks a lot for your effort here. |
PR Description
This PR is in response to the changes requested by @ghostsquad in #182.
What does this fix or add?
It adds support for
context
in all of the API requests.Checklist