-
Notifications
You must be signed in to change notification settings - Fork 117
Adding userAgent parameter to Isochrone request retrofit call URL #997
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
Conversation
|
Actually, I'm now seeing how other navigation API wrappers in the repo, handle the user agent. Will adjust the isochrone support accordingly |
e4c82fb to
9b1c14f
Compare
|
@langsmith Technically speaking this becomes a 5.0.0 release because the API changed and it is not backward compatible. I am surprised the tests did not catch this? I guess because a response was mocked. Did your sample code work? Also, I think the way to fix this without making a major release would be to add the new method (not modify the existing one). One old one can be deprecated and we will remove it when 5.0.0 is done. |
a872637 to
7fadb5a
Compare
Yea, sample code worked. I think we didn't catch this because I put the
Sounds 💯 . I've pushed and rebased this fix. Added a new |
|
Going to test this work by using a Java services SNAPSHOT in the demo app isochrone refactor pr mapbox/mapbox-android-demo#1029 |
services-isochrone/src/main/java/com/mapbox/api/isochrone/MapboxIsochrone.java
Outdated
Show resolved
Hide resolved
services-isochrone/src/main/java/com/mapbox/api/isochrone/IsochroneCriteria.java
Outdated
Show resolved
Hide resolved
7fadb5a to
2424a23
Compare
services-isochrone/src/main/java/com/mapbox/api/isochrone/IsochroneService.java
Outdated
Show resolved
Hide resolved
2424a23 to
1459c0b
Compare
Resolves #996 by adding a required
/mapbox/slug to the Isochrone API service's Retrofit request URL. Based on my demo app refactoring work in mapbox/mapbox-android-demo#1029, the #996 bug renders the wrapper unusable.The API's docs
Totally fine if this is the wrong way to fix the bug. Figured I'd open something to get the conversation started.