-
Notifications
You must be signed in to change notification settings - Fork 135
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
Gremlin Base Functionality #47
Conversation
Awesome stuff! I'll take a look in depth, and we can hopefully release this, sometime this week! |
Hey good news, it turns out my transform code didn't handle paths properly, and in the process of fixing that I went ahead and made it recurse maps too: So now you shouldn't need any special-case for Gremlin results. But let me know if you still do. (You can rebase your branch onto the latest |
Awesome. Yea, I need to get a bit more thorough with the tests I have after looking at some of yours for the cypher ones with the transform function, I'll see if I can figure out this "rebase" magic you mention, get the update worked in and tested, and get it pushed back up to ya. |
Try this: # start at your latest commit
$ git checkout develop
# create a pointer to this commit as-is for backup
$ git branch backup
# assuming the remote for this thingdom repo is called upstream, fetch the latest
$ git fetch upstream
# now rebase your develop onto the latest thingdom develop
$ git rebase upstream/develop
# hopefully no conflicts. but if there are, just follow the instructions:
# - fix the conflicts, e.g. using git mergetool
# - then git rebase --continue
# if a seeming-conflict arises but there are no changed files:
# - git rebase --skip
# if at any point things are totally fubar:
# - git rebase --abort
# now if you do a git log, you should see your changes cleanly on top of the ones here
$ git log --graph --decorate --pretty=oneline --abbrev-commit
# then update your github repo (which'll update this pull request)
# assuming you call that remote origin
$ git push origin develop -f A helpful reference: And for future reference, you might prefer to do this kind of work in a feature (AKA topic) branch instead of in develop. That way you can always easily keep your develop in sync with the upstream develop, and then it's just a simple rebase of your topic branch onto your own develop. Hope this helps! |
…, was able to wire up the function and build a working starting point, am not getting callbacks to fire when results are complete
…over with Aseem. I also commented out the results mapping in order to get the functionality tested and working. I plan to write more tests and reapply this section in the near future.
…raph. Results returned as expected. Need to rework a bit of graceful handling, but basic functionality is there
…params functionally being optional now
…lop, worked in to return functionality with .execute(), tests still passing although they may need flushed out a bit more thoroughly.
…form() functionality
Thanks for the rebase tips and resources, that was a first. I like the idea of using topic branches and utilizing that in future projects though - awesome stuff. This commit passed the tests I have already written: whichsteveyp@318d68e |
Sorry for the delay here, but finally getting to this, and it looks great! I'm just doing a bit of cleanup -- I'll leave comments here for future reference, but don't worry, I'm already taking care of them. Thanks again @sprjr! |
try | ||
services = @getServices _ | ||
endpoint = services.gremlin or | ||
services.extensions?.GremlinPlugin?['execute_script'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no official gremlin
endpoint baked in, so simplifying this to only check the plugin endpoint.
Merged! Thanks and great work again @sprjr. =) I'll post here when this gets published to npm. |
Okay, published as 0.2.17! Woot! |
[Edited by @aseemk: see previous discussion at issue #44.]
Hey guys,
So I believe I finished a basic, working support of the Gremlin plugin for this module. I did not update the documentation, README, or module version as I know there are other features in the works that pertain to all of those.
Included some starter tests that seem to indicate it is working, I'm sure further testing and usage will prove otherwise but I'll keep working on it. My next steps are to see if transactional & multi-line gremlin work as intended with it as well.
Let me know if you need anything else on this though!
Usage: db.execute(script, optional: params, callback)
Test: npm run gremlin