-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[gitpod-protocol] Add Java client implementation #5795
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
@akosyakov This is a POC-like Java implementation of the gitpod-server protocol. I would suggest not to implement every function but only the functions needed for the JetBrains implementation. Thus, I would suggest to work on #5642 in parallel and keep this PR open until we implemented the client part on the JetBrains plugin. |
👍 Yes, it was the plan |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
6a4a144
to
50d9401
Compare
I've updated this PR with
see also: #5687 (comment) |
50d9401
to
f73e042
Compare
|
f73e042
to
df66d9d
Compare
|
|
||
@Override | ||
public int hashCode() { | ||
final Integer prime = 31; |
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.
off-topic: Wow, reading this code brings back memories... when IDE did not have a "auto-generate hashCode
and equals
method", yet. The forgotten art of writing those methods by hand was just... hilarious is maybe the best way to put it. 😄
/werft no-preview
df66d9d
to
ecc1532
Compare
|
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.
/lgtm
@geropl Could you give an approve too? 🙏 It is more intermediate step that we can bring IntelliJ plugins.
LGTM label has been added. Git tree hash: b14f19f436d71a8d61b03300ce91c38eeed95f6c
|
/assign @gtsiolis |
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.
Approving per #5795 (review) and #5795 (comment) to unblock merging but holding in case this needs a closer look at the code. Feel free to remove do-not-merge/hold
label and merge if this looks good to merge.
/hold
Thanks George! Gero has given the go-ahead. 🙏 Removing hold now. |
|
||
// Set env vars GITHUB_GPR_USERNAME and GITHUB_GPR_TOKEN and run: | ||
// ./gradlew publish | ||
publishing { |
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 believe we can remove this, as the ones depending on it will live in this monorepo.
If you agree, I will remove the same piece of code from supervisor-api/java in the context of adding the intellij-backend-plugin to the repo.
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.
Yes, definitely. Sounds good!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akosyakov, atduarte, gtsiolis Associated issue: #5603 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
This PR adds a Java API client implementation for the gitpod-protocol. This will be consumed by the JetBrains plugins that sends heartbeats for the Gitpod workspace.
Related Issue(s)
Solves partly #5603
How to test
For a quick test, there is a
TestClient
class. Change the variablesuri
,token
andorigin
and run:Release Notes
Meta
/werft no-preview
/uncc