Skip to content

Remove deprecated Gremlin operations from sample notebooks #308

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

Merged
merged 2 commits into from
Jun 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -15,6 +15,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd
- Fixed rendering of openCypher widgets for empty result sets ([Link to PR](https://github.com/aws/graph-notebook/pull/286))
- Fixed graph search overriding physics setting ([Link to PR](https://github.com/aws/graph-notebook/pull/282))
- Fixed browser-specific bug in results pagination options menu ([Link to PR](https://github.com/aws/graph-notebook/pull/290))
- Fixed invalid queries in Gremlin sample notebooks ([Link to PR](https://github.com/aws/graph-notebook/pull/308))
- Removed `requests-aws4auth` requirement ([Link to PR](https://github.com/aws/graph-notebook/pull/291))

## Release 3.3.0 (March 28, 2022)
4 changes: 0 additions & 4 deletions src/graph_notebook/magics/completers/graph_completer.py
Original file line number Diff line number Diff line change
@@ -133,10 +133,6 @@
'.T.label',
'.T.key',
'.T.value',
'.incr',
'.Order.incr',
'.decr',
'.Order.decr',
'.asc',
'.Order.asc',
'.desc',
Original file line number Diff line number Diff line change
@@ -162,8 +162,8 @@
"source": [
"%%gremlin\n",
"\n",
"g.V('1').addE('knows').to(g.V('2')).property('weight', 0.5).next()\n",
"g.addE('knows').from(g.V('1')).to(g.V('4')).property('weight', 1.0) "
"g.V('1').addE('knows').to(__.V('2')).property('weight', 0.5).next()\n",
"g.addE('knows').from(__.V('1')).to(__.V('4')).property('weight', 1.0)"
]
},
{
@@ -183,10 +183,10 @@
"source": [
"%%gremlin\n",
"\n",
"g.V('1').addE('created').to(g.V('3')).property('weight', 0.4).next()\n",
"g.V('4').addE('created').to(g.V('5')).property('weight', 1.0).next()\n",
"g.V('4').addE('knows').to(g.V('3')).property('weight', 0.4).next()\n",
"g.V('6').addE('created').to(g.V('3')).property('weight', 0.2)"
"g.V('1').addE('created').to(__.V('3')).property('weight', 0.4).next()\n",
"g.V('4').addE('created').to(__.V('5')).property('weight', 1.0).next()\n",
"g.V('4').addE('knows').to(__.V('3')).property('weight', 0.4).next()\n",
"g.V('6').addE('created').to(__.V('3')).property('weight', 0.2)"
]
},
{
Original file line number Diff line number Diff line change
@@ -190,7 +190,7 @@
" both('FRIEND').\n",
" where(P.neq('user')).where(P.without('friends')). \n",
" groupCount().by('name'). \n",
" order(Scope.local).by(values, Order.decr).\n",
" order(Scope.local).by(values, Order.desc).\n",
" next()"
]
},
@@ -223,7 +223,7 @@
" .has('strength', P.gt(1)).otherV()\n",
" .where(P.neq('user')).where(P.without('friends'))\n",
" .groupCount().by('name')\n",
" .order(Scope.local).by(values, Order.decr)\n",
" .order(Scope.local).by(values, Order.desc)\n",
" .next()\n"
]
},
Original file line number Diff line number Diff line change
@@ -347,7 +347,7 @@
"g.V('Dave Bechberger').\n",
" in('written_by').\n",
" out('found_in').groupCount().by('text').order(local).\n",
" by(values, Order.decr).unfold()"
" by(values, Order.desc).unfold()"
]
},
{
@@ -378,7 +378,7 @@
" in('written_by').\n",
" out('found_in').\n",
" groupCount().by('text').\n",
" order(local).by(values, Order.decr).\n",
" order(local).by(values, Order.desc).\n",
" unfold()"
]
},
@@ -408,7 +408,7 @@
" out('found_in').\n",
" has('text', without('AWS', 'Amazon', 'Neptune')).\n",
" groupCount().by('text').\n",
" order(local).by(values, Order.decr).\n",
" order(local).by(values, Order.desc).\n",
" unfold()"
]
},