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

Fix Bolt support #29

Merged
merged 1 commit into from
Feb 3, 2021
Merged

Fix Bolt support #29

merged 1 commit into from
Feb 3, 2021

Conversation

johannessen
Copy link
Collaborator

Resolves #20 (for real this time).

This doesn’t address #28, majensen/perlbolt#38, or johannessen/neo4j-driver-perl#11. Other than that, the test suite succeeds now on my system. And yes, this time I did double-check that it actually used Bolt.


Sorry that automatic merging isn’t possible. I’m afraid the CI workflow changes you made today prevent me from updating my fork. I keep getting a message saying refusing to allow an OAuth App to create or update workflow '.github/workflows/test.yml' without 'workflow' scope, but I’m not even using OAuth.

Could be a bug in GitHub, but I lack the time to investigate it further.

@majensen
Copy link
Owner

Hey Arne - I'm going to figure how to make the CI work for you (ideally for everyone); still in "beta" :-)

Really appreciate you putting the finishing touches on this.

@majensen
Copy link
Owner

@johannessen One thing to do -- go ahead and branch directly in the repo, since you're allowed

@majensen
Copy link
Owner

One thing - I want to leave in 0012_connect.t and its data files. This test mocks the server and the data files are fake responses. It was borking, but I fixed that in 331c68e. Can you pull and just patch ...Neo4j::Driver?

The undocumented internal data structure of the Neo4j::Driver::Result module may differ between driver versions, between server versions, and between result formats (Bolt/Jolt/JSON). Direct access is possible, but brittle.

At the same time, the REST action URIs are not even supported anymore in Neo4j 4. Therefore, they won't change in future and hard-coding them here is not a problem.
@johannessen
Copy link
Collaborator Author

Well, I made a bit of a mess with #27. Helping to clean it up is the least I can do.

About 0012_connect.t – the mocking is very nicely done, but after 9589d0e, it looked like a no-op to me. I may have misunderstood how that test works though, being less familiar with the Neo4p code than you are, obviously.

Anyway, I have now removed that particular commit and kept the other one.

@johannessen
Copy link
Collaborator Author

Hey Arne - I'm going to figure how to make the CI work for you (ideally for everyone); still in "beta" :-)

Right. Pushing to my fork succeeds again now – not really sure why. Maybe a config snafu on my end, or GH fixed something on theirs.

FYI, unlike Travis, the GH workflow also tries to run in forks, but fails, apparently because $DOCKERH is unset.

https://github.com/johannessen/rest-neo4p/runs/1808494080

@majensen
Copy link
Owner

majensen commented Feb 2, 2021 via email

@majensen majensen merged commit bb4bf90 into majensen:master Feb 3, 2021
@johannessen johannessen deleted the fix-bolt-pr27 branch February 3, 2021 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bolt driver compatibility!?
2 participants