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

Add transport types to use when transferring results ww -> main thread #708

Merged
merged 2 commits into from
Mar 13, 2018

Conversation

oskarhane
Copy link
Member

@oskarhane oskarhane commented Mar 5, 2018

To never run into any shape matching problem again, the right solution for this problem is to create transport types and attach them to the Bolt types response items in ww.
They are decoded and transformed back into real Bolt types on the main thread after transport.

NOTE: The applyGraphTypes.test.js file diff is collapsed in the "File Changed" view in this PR, but that's where all the relevant integration tests are.

The property name which holds the type name was decided to be transport-class.
If user data already has this property name, it's being escaped so we should never have a problem with collisions.

Showing no collision
oskarhane-mbpt 2018-03-07 at 10 10 19

Showing transported data vs. parsed data (types are not shown here, but they are correct). Note the escaped transport-class from the result
oskarhane-mbpt 2018-03-07 at 10 37 49

changelog: Fix issue of some queries getting stuck because of the shape of the result

@oskarhane oskarhane force-pushed the fix-false-positive-rel branch from a2f66c2 to 65ae7c1 Compare March 7, 2018 09:05
@oskarhane oskarhane changed the title More correct relationship shape check Add transport types to use when transferring results WW -> Main thread Mar 7, 2018
Fix all graph type tests to be integration tests
using both encode / decode transport types.
@oskarhane oskarhane force-pushed the fix-false-positive-rel branch from f0f390f to ee86237 Compare March 7, 2018 09:30
@oskarhane oskarhane changed the title Add transport types to use when transferring results WW -> Main thread Add transport types to use when transferring results ww -> main thread Mar 7, 2018
@pe4cey pe4cey merged commit 0470bab into neo4j:master Mar 13, 2018
@oskarhane oskarhane deleted the fix-false-positive-rel branch April 6, 2018 08:44
myzero1 pushed a commit to myzero1/neo4j-browser that referenced this pull request May 17, 2019
Add transport types to use when transferring results ww -> main thread
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.

2 participants