You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2020/08/04 14:40:37 UTC

[tinkerpop] branch master updated (ce7422c -> e1ef4ba)

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git.


    from ce7422c  Merge fix - whitespace CTR
     add 61e9a6e  Add support to provide extra arguments to the Client.submit()
     new bc471fe  Merge branch 'pr-1303'
     new e1ef4ba  Added docs for "per request settings" in js CTR

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CHANGELOG.asciidoc                                       |  1 +
 docs/src/reference/gremlin-variants.asciidoc             | 11 +++++++++++
 .../javascript/gremlin-javascript/lib/driver/client.js   |  7 ++++---
 .../gremlin-javascript/test/unit/client-test.js          | 16 ++++++++++++++++
 4 files changed, 32 insertions(+), 3 deletions(-)


[tinkerpop] 02/02: Added docs for "per request settings" in js CTR

Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit e1ef4ba133426d518deade226e7970d3644b5bc2
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Tue Aug 4 10:18:42 2020 -0400

    Added docs for "per request settings" in js CTR
---
 CHANGELOG.asciidoc                           |  1 +
 docs/src/reference/gremlin-variants.asciidoc | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc
index d1a26bd..5cd7e02 100644
--- a/CHANGELOG.asciidoc
+++ b/CHANGELOG.asciidoc
@@ -29,6 +29,7 @@ This release also includes changes from <<release-3-4-3, 3.4.3>>.
 * Fixed a bug where spark-gremlin was not re-attaching properties when using `dedup()`.
 * Ensured better consistency of the use of `null` as arguments to mutation steps.
 * Allowed `property(T.label,Object)` to be used if no value was supplied to `addV(String)`.
+* Allowed additional arguments to `Client.submit()` in Javascript driver to enable setting of parameters like `scriptEvaluationTimeout`.
 * Added a `Graph.Feature` for `supportsNullPropertyValues`.
 * Modified `TokenTraversal` to support `Property` thus `by(key)` and `by(value)` can now apply to `Edge` and meta-properties.
 * Added `SeedStrategy` to allow deterministic behavior for `coin()`, `sample()` and `Order.shuffle`.
diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc
index 85a9c95..6772a8d 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -1317,6 +1317,17 @@ const client = new gremlin.driver.Client('ws://localhost:8182/gremlin', { traver
 
 With this configuration, the state of variables within scripts are preserved between requests.
 
+==== Per Request Settings
+
+Some settings can be established per request, like an override of the `scriptEvaluationTimeout` which can be helpful
+when it is known that particular request might need to execute longer than what the server might allow with its
+settings:
+
+[source,javascript]
+----
+const result = await client.submit('g.V().repeat(both()).times(100)', null, {"scriptEvaluationTimeout": 60000});
+----
+
 [[gremlin-javascript-dsl]]
 === Domain Specific Languages
 


[tinkerpop] 01/02: Merge branch 'pr-1303'

Posted by sp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit bc471fe2fd486236a107e99a2207020485f52f9a
Merge: ce7422c 61e9a6e
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Tue Aug 4 10:06:57 2020 -0400

    Merge branch 'pr-1303'

 .../javascript/gremlin-javascript/lib/driver/client.js   |  7 ++++---
 .../gremlin-javascript/test/unit/client-test.js          | 16 ++++++++++++++++
 2 files changed, 20 insertions(+), 3 deletions(-)