You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by davebshow <gi...@git.apache.org> on 2018/01/24 21:22:20 UTC

[GitHub] tinkerpop pull request #790: TINKERPOP-1875 Gremlin-Python only aggregates t...

GitHub user davebshow opened a pull request:

    https://github.com/apache/tinkerpop/pull/790

    TINKERPOP-1875 Gremlin-Python only aggregates to list when using GraphSON3

    https://issues.apache.org/jira/browse/TINKERPOP-1875
    
    This PR fixes server response message deserialization in Gremlin-Python. Improper deserialization was leading to `aggregate_to` always resulting in a list as well as API comparability issues between GraphSON2 and GraphSON3 message serializers.
    
    This PR also improves testing--all Gremlin-Python tests using a remote connection are now run with both GraphSON 2 and 3 serializers. 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/tinkerpop TINKERPOP-1875

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tinkerpop/pull/790.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #790
    
----
commit f0bbe7c90f5f66028203f21dcf720bf0948f1950
Author: davebshow <da...@...>
Date:   2018-01-24T21:14:03Z

    added proper response message serialization, run all remote connection tests with graphson 2 and 3

----


---

[GitHub] tinkerpop pull request #790: TINKERPOP-1875 Gremlin-Python only aggregates t...

Posted by spmallette <gi...@git.apache.org>.
Github user spmallette commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/790#discussion_r164498752
  
    --- Diff: gremlin-python/src/main/jython/tests/conftest.py ---
    @@ -1,4 +1,4 @@
    -'''
    +"""
    --- End diff --
    
    any reason you switched to double quotes here? seems like we used singles everywhere else.


---

[GitHub] tinkerpop issue #790: TINKERPOP-1875 Gremlin-Python only aggregates to list ...

Posted by jorgebay <gi...@git.apache.org>.
Github user jorgebay commented on the issue:

    https://github.com/apache/tinkerpop/pull/790
  
    lgtm, VOTE +1


---

[GitHub] tinkerpop pull request #790: TINKERPOP-1875 Gremlin-Python only aggregates t...

Posted by spmallette <gi...@git.apache.org>.
Github user spmallette commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/790#discussion_r163694635
  
    --- Diff: gremlin-python/src/main/jython/tests/conftest.py ---
    @@ -65,10 +65,14 @@ def fin():
             request.addfinalizer(fin)
             return client
     
    -@pytest.fixture
    +@pytest.fixture(params=['v2', 'v3'])
    --- End diff --
    
    this is good. doesn't help us with radish test problems though. we still need to do https://issues.apache.org/jira/browse/TINKERPOP-1864 - not sure what's going on there


---

[GitHub] tinkerpop issue #790: TINKERPOP-1875 Gremlin-Python only aggregates to list ...

Posted by davebshow <gi...@git.apache.org>.
Github user davebshow commented on the issue:

    https://github.com/apache/tinkerpop/pull/790
  
    VOTE +1


---

[GitHub] tinkerpop pull request #790: TINKERPOP-1875 Gremlin-Python only aggregates t...

Posted by spmallette <gi...@git.apache.org>.
Github user spmallette commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/790#discussion_r164529296
  
    --- Diff: gremlin-python/src/main/jython/tests/conftest.py ---
    @@ -1,4 +1,4 @@
    -'''
    +"""
    --- End diff --
    
    i'm fine with adhering to the style guides. perhaps just do it consistently? perhaps CTR in fixes across the board for all the license headers, so that it's not just in this one file.


---

[GitHub] tinkerpop pull request #790: TINKERPOP-1875 Gremlin-Python only aggregates t...

Posted by davebshow <gi...@git.apache.org>.
Github user davebshow commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/790#discussion_r165509842
  
    --- Diff: gremlin-python/src/main/jython/tests/conftest.py ---
    @@ -1,4 +1,4 @@
    -'''
    +"""
    --- End diff --
    
    Ok willdo.


---

[GitHub] tinkerpop pull request #790: TINKERPOP-1875 Gremlin-Python only aggregates t...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/tinkerpop/pull/790


---

[GitHub] tinkerpop pull request #790: TINKERPOP-1875 Gremlin-Python only aggregates t...

Posted by davebshow <gi...@git.apache.org>.
Github user davebshow commented on a diff in the pull request:

    https://github.com/apache/tinkerpop/pull/790#discussion_r164506631
  
    --- Diff: gremlin-python/src/main/jython/tests/conftest.py ---
    @@ -1,4 +1,4 @@
    -'''
    +"""
    --- End diff --
    
    When possible, I try to follow the style guidelines laid out in [PEP 8](https://www.python.org/dev/peps/pep-0008/#string-quotes). Docstrings specifically relate to  [PEP 257](https://www.python.org/dev/peps/pep-0257/). Gremlin Python wasn't originally written with these guidelines in mind, so sometimes I make little style fixes in code that I am updating. Maybe not the best idea, since it doesn't really relate to the PR.


---

[GitHub] tinkerpop issue #790: TINKERPOP-1875 Gremlin-Python only aggregates to list ...

Posted by spmallette <gi...@git.apache.org>.
Github user spmallette commented on the issue:

    https://github.com/apache/tinkerpop/pull/790
  
    All tests pass with `docker/build.sh -t -n -i`
    
    VOTE +1


---