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

TINKERPOP-1943 Support GraphSON3 in Gremlin-JavaScript #858

Merged
merged 1 commit into from
May 1, 2018

Conversation

jorgebay
Copy link
Contributor

Add support for GraphSON3 to the JavaScript GLV.

https://issues.apache.org/jira/browse/TINKERPOP-1943

All gherkin scenarios are passing: 465 scenarios (27 skipped, 438 passed)

VOTE +1

@@ -33,7 +33,7 @@ const responseStatusCode = {
noContent: 204,
partialContent: 206
};
const defaultMimeType = 'application/vnd.gremlin-v2.0+json';
const defaultMimeType = 'application/vnd.gremlin-v3.0+json';
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a way to configure for GraphSON 2.0? Also, I assume that the tests are running on GraphSON 3.0 now, but do they also run for GraphSON 2.0 still?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The user can configure to use GraphSON2 by setting the mime type when creating the DriverRemoteConnection instance:

const connection = new DriverRemoteConnection({ mimeType: 'application/vnd.gremlin-v2.0+json' });

I think in any case, is highly unlikely a user would like to use a previous version of the serialization format with the newer version.

It now defaults to GraphSON3 and all tests run using GraphSON3. I haven't changed the scripts to make a GraphSON2 and GraphSON3 run as one is a superset of the other.

Choose a reason for hiding this comment

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

Thanks @jorgebay

@spmallette
Copy link
Contributor

spmallette commented Apr 25, 2018

VOTE +1 (pending a CHANGELOG entry)

@dkuppitz
Copy link
Contributor

VOTE: +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants