Skip to content

Move hand-coded client here - #1146

Merged
michaz merged 4 commits into
masterfrom
client
Sep 1, 2017
Merged

michaz merged 4 commits into
masterfrom
client

Conversation

@michaz

@michaz michaz commented Aug 27, 2017 •

Copy link
Copy Markdown
Member

Fixes #1104.

I hope I was careful enough merging the two versions, they were already diverged quite a bit.

Further suggestion: Rename it from "client-hc" to "client". (That's inside-out terminology, nobody cares that it's hand-coded.)

Even further suggestion (for the other repository): Move the Swagger client into the repository with the other Swagger clients, then it's clear where it comes from and can be regenerated easier. Repositories are mainly for the coders of the stuff which is inside, not for coders who want to use the stuff which is inside for coding. So having specifically the Java-Swagger client separate to make it more visible shouldn't be necessary.

Even more further suggestion: Remove the Java-Swagger client and the Swagger-Client repository completely, because arguably generated code shouldn't be in a repository at all but should be generated. Is that possible?

@karussell

Copy link
Copy Markdown
Member

Thanks, good ideas!

Move the Swagger client into the repository with the other Swagger clients

Yeah, we can get rid of the extra Java client then.

and the Swagger-Client repository completely

Then we would have to deploy the clients to all language specific binary repository. For Java we already do this, for the other languages it would be too much effort. To leave the autocreation to the users seems also suboptimal, as they would need to install java to run the swagger codegen.

@karussell karussell added this to the 0.10 milestone Aug 27, 2017
@devemux86

Copy link
Copy Markdown
Contributor

To leave the autocreation to the users seems also suboptimal, as they would need to install java to run the swagger codegen.

Valid point, now it's easy to clone / use the latest directions-api-java-client, having to generate each time would probably decrease user convenience for many.

@karussell

Copy link
Copy Markdown
Member

Valid point, now it's easy to clone / use the latest directions-api-java-client, having to generate each time would probably decrease user convenience for many.

For Java it would be okay to remove the autocreated code as we deploy this to maven central or the snapshots to sonatype.

@devemux86

devemux86 commented Aug 27, 2017 •

Copy link
Copy Markdown
Contributor

the snapshots to sonatype

Are they now automatically published with each successful commit?
Previously don't remember the snapshots publish to be immediate.
Plus it's useful users can build if wanting to stay up to a specific commit a bit longer until review new (large) changes.

@karussell

Copy link
Copy Markdown
Member

@michaz

michaz commented Aug 28, 2017

Copy link
Copy Markdown
Member Author

Ah, btw, @karussell, did you see, this is now independent of the dropwizard PR. I just moved it over.

@karussell karussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only a few comments ...

* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* GraphHopper licenses this file to you under the Apache License,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The license header should be fixed to GraphHopper GmbH

Comment thread client-hc/nbproject/project.properties Outdated
@@ -0,0 +1,18 @@
#

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this file

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the same regarding the license header

*
* @author Peter Karich
*/
public class WebHelper {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this class now duplicate as we also have com.graphhopper.http.WebHelper and if yes, can we avoid this somehow?

@michaz michaz Sep 1, 2017 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes and yes, in the next step, where we move all the Data Transfer Objects (including, probably, GHRequest / GHResponse) and their serializers-deserializers to another module (without HTTP-client dependencies, only Jackson-API and javax.ws API), which is then included by core, client and server.

@michaz
michaz merged commit a601744 into master Sep 1, 2017
@karussell

Copy link
Copy Markdown
Member

Cool & Thanks!

karussell pushed a commit to graphhopper/directions-api-java-client that referenced this pull request Sep 9, 2017
@michaz
michaz deleted the client branch April 22, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants