Skip to content
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

Unification of JSON RPC codebase #5005

Merged
merged 15 commits into from
May 16, 2017
Merged

Unification of JSON RPC codebase #5005

merged 15 commits into from
May 16, 2017

Conversation

dkuleshov
Copy link

What does this PR do?

We had two different implementations of JSON RPC subsystem because of different Java version used on client and server side. After we updated java version on client we no more need different implementations. This PR is intended to make code base as unified as possible for both sides. More accurately current difference is mostly within JSON parsing libraries (which are different for client and server sides).

What issues does this PR fix or reference?

#4616

Changelog

Client side (IDE) and server side (workspace agent, workspace master) JSON RPC services codebase is unified

Release Notes

Client side (IDE) and server side (workspace agent, workspace master) JSON RPC services codebase is unified

@dkuleshov dkuleshov added the status/in-progress This issue has been taken by an engineer and is under active development. label May 4, 2017
@dkuleshov dkuleshov self-assigned this May 4, 2017
@codenvy-ci
Copy link

Build # 2544 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2544/ to view the results.

@codenvy-ci
Copy link

@codenvy-ci
Copy link

Build # 2558 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2558/ to view the results.

@dkuleshov dkuleshov added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. and removed status/in-progress This issue has been taken by an engineer and is under active development. labels May 10, 2017
@codenvy-ci
Copy link

* Serializes JSON RPC request object into a string
*
* @param request
* response
Copy link
Member

Choose a reason for hiding this comment

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

please fix typo

* <li>{@link OneToManyHandler}- to receive a request with a single parameter and multiple results </li>
* <li>{@link ManyToNoneHandler} - to receive a notification with multiple parameters</li>
* <li>{@link ManyToOneHandler} - to receive request with multiple parameters and a single result</li>
* <li>{@link ManyToManyHandler} - to receive request with multiple parameters and mu</li>
Copy link
Member

Choose a reason for hiding this comment

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

the sentence is not finished, I suppose: "...and multiple results"

@codenvy-ci
Copy link

@codenvy-ci
Copy link

Build # 2580 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2580/ to view the results.

Dmitry Kuleshov and others added 9 commits May 15, 2017 17:53
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Dmitry Kuleshov added 2 commits May 15, 2017 17:56
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
@@ -8,12 +8,12 @@
* Contributors:
* Codenvy, S.A. - initial API and implementation
*******************************************************************************/
package org.eclipse.che.api.core.jsonrpc;
package org.eclipse.che.api.core.jsonrpc.commons;

Copy link
Contributor

Choose a reason for hiding this comment

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

javadoc

* <li>{@link ManyToManyHandler} - to receive request with multiple parameters and multiple results</li>
* </ul>
*/
@Singleton
Copy link
Contributor

Choose a reason for hiding this comment

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

think about if this class is thread safe

Dmitry Kuleshov and others added 2 commits May 15, 2017 18:25
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
@codenvy-ci
Copy link

Build # 2595 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/2595/ to view the results.

Vitalii Parfonov and others added 2 commits May 16, 2017 11:16
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
@vparfonov vparfonov added this to the 5.11.0 milestone May 16, 2017
@dkuleshov dkuleshov merged commit 3deb16e into master May 16, 2017
@codenvy-ci
Copy link

@dkuleshov dkuleshov deleted the jsonrpc-source-merge branch May 18, 2017 12:16
@slemeur slemeur added the kind/enhancement A feature request - must adhere to the feature request template. label May 26, 2017
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Jun 14, 2017
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants