-
Notifications
You must be signed in to change notification settings - Fork 86
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
Adding methods to retrieve current HTTP method+cookies in Java API #233
Adding methods to retrieve current HTTP method+cookies in Java API #233
Conversation
c1ce564
to
6b44209
Compare
6b44209
to
ae0b0e9
Compare
FYI, the CI build broke because:
Since these are new methods in the API, i assume it's safe to ignore those errors? |
Adding methods to interfaces is a backwards-incompatible change because any code that depends on this library and uses the One thing we could do is define a default method and throw an wdyt @marcospereira? Also is there a reason why this was submitted to 1.x.x rather than master? It might be easier to design the right API on master first and then figure out what we need to do for compatibility to backport that change. |
You're right. I assumed the
I had originally made the change on top of Anyway, based on this comment, i'll "migrate" the code changes to the |
ae0b0e9
to
88d52da
Compare
I'm done performing changes (default implementation + PR base). Awaiting for further comments. |
Closing and reopening to Travis build it again. |
@marcospereira anything else i can do to see this PR progress (either to get it merged or get it closed)? |
Hi @AlejandroRivera, First of all, sorry for the long time to give you a proper answer. As @gmethvin said before, when submitting pull requests to the master branch, you can break binary compatibility without a problem. We usually try to have a balance between breaking the API and offer a smooth migration path for users, but you can break binary compatibility. When doing so, add the MiMa filters so that we can better track where the API is changing. Given that, you don't need to provide the default implementation throwing Thank you and again, sorry for the long time to reply. |
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.
👍
I'm merging this and we can later change the defaults to not throw |
Pull Request Checklist
Fixes
Fixes #231 and #232
Purpose
Adds new methods to the Java API for the StandaloneWSRequest to retrieve the request method and cookies