Skip to content

Commit

Permalink
Merge branch '3.7-dev' into ryan/rename-to-discard
Browse files Browse the repository at this point in the history
  • Loading branch information
ryn5 authored Dec 6, 2023
2 parents 2dac1ea + d075af8 commit 2e84778
Show file tree
Hide file tree
Showing 52 changed files with 163 additions and 150 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ jobs:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -34,9 +34,9 @@ jobs:
needs: smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -52,9 +52,9 @@ jobs:
needs: smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'temurin'
Expand All @@ -66,9 +66,9 @@ jobs:
needs: smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -82,9 +82,9 @@ jobs:
needs: smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -98,9 +98,9 @@ jobs:
needs: smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand Down Expand Up @@ -134,9 +134,9 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -158,9 +158,9 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -179,9 +179,9 @@ jobs:
needs: smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -196,9 +196,9 @@ jobs:
needs: cache-gremlin-server-docker-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -217,9 +217,9 @@ jobs:
# os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand Down Expand Up @@ -251,9 +251,9 @@ jobs:
needs: cache-gremlin-server-docker-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -272,14 +272,14 @@ jobs:
needs: cache-gremlin-server-docker-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Set up .NET 6.0.x
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Get Cached Server Base Image
Expand All @@ -305,9 +305,9 @@ jobs:
needs: smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
Expand All @@ -322,7 +322,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ limitations under the License.
image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/images/gremlin-zamfir.png[width=185]
[[release-3-7-2]]
=== TinkerPop 3.7.2 (NOT OFFICIALLY RELEASED YET)
[[release-3-7-1]]
=== TinkerPop 3.7.1 (November 20, 2023)
Expand Down Expand Up @@ -272,6 +277,11 @@ This release also includes changes from <<release-3-6-5, 3.6.5>> and <<release-3
image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/images/gremlin-victorian.png[width=185]
[[release-3-6-7]]
=== TinkerPop 3.6.7 (NOT OFFICIALLY RELEASED YET)
[[release-3-6-6]]
=== TinkerPop 3.6.6 (November 20, 2023)
Expand Down
14 changes: 14 additions & 0 deletions docs/src/upgrade/release-3.6.x.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,21 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
*Tinkerheart*
== TinkerPop 3.6.7
*Release Date: NOT OFFICIALLY RELEASED YET*
Please see the link:https://github.com/apache/tinkerpop/blob/3.6.7/CHANGELOG.asciidoc#release-3-6-7[changelog] for a
complete list of all the modifications that are part of this release.
=== Upgrading for Users
=== Upgrading for Providers
== TinkerPop 3.6.6
*Release Date: November 20, 2023*
Please see the link:https://github.com/apache/tinkerpop/blob/3.6.6/CHANGELOG.asciidoc#release-3-6-6[changelog] for a
Expand Down
9 changes: 7 additions & 2 deletions docs/src/upgrade/release-3.7.x.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ image::https://raw.githubusercontent.com/apache/tinkerpop/master/docs/static/ima
== TinkerPop 3.7.2
Please see the link:https://github.com/apache/tinkerpop/blob/3.7.1/CHANGELOG.asciidoc#release-3-7-1[changelog] for a
*Release Date: NOT OFFICIALLY RELEASED YET*
Please see the link:https://github.com/apache/tinkerpop/blob/3.7.2/CHANGELOG.asciidoc#release-3-7-2[changelog] for a
complete list of all the modifications that are part of this release.
=== Upgrading for Users
=== Upgrading for Providers
==== Renaming None Step to Discard
Expand Down Expand Up @@ -176,7 +181,7 @@ gremlin> g.V().values("name").reverse()
==>hsoj
==>elppir
==>retep
gremlin> g.inject(" hi ").trim().concat()
gremlin> g.inject(" hi ").trim().concat("trim")
==>hitrim
gremlin> g.inject(" hi ").lTrim().concat("left_trim")
==>hi left_trim
Expand Down
2 changes: 1 addition & 1 deletion gremlin-annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<parent>
<artifactId>tinkerpop</artifactId>
<groupId>org.apache.tinkerpop</groupId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>

<artifactId>gremlin-annotations</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gremlin-archetype/gremlin-archetype-dsl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<parent>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-archetype</artifactId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>

<artifactId>gremlin-archetype-dsl</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gremlin-archetype/gremlin-archetype-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<parent>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-archetype</artifactId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>

<artifactId>gremlin-archetype-server</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gremlin-archetype/gremlin-archetype-tinkergraph/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<parent>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-archetype</artifactId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>

<artifactId>gremlin-archetype-tinkergraph</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gremlin-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<parent>
<artifactId>tinkerpop</artifactId>
<groupId>org.apache.tinkerpop</groupId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>

<artifactId>gremlin-archetype</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion gremlin-console/bin/gremlin.sh
2 changes: 1 addition & 1 deletion gremlin-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<parent>
<artifactId>tinkerpop</artifactId>
<groupId>org.apache.tinkerpop</groupId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>
<artifactId>gremlin-console</artifactId>
<name>Apache TinkerPop :: Gremlin Console</name>
Expand Down
2 changes: 1 addition & 1 deletion gremlin-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ limitations under the License.
<parent>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>tinkerpop</artifactId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>
<artifactId>gremlin-core</artifactId>
<name>Apache TinkerPop :: Gremlin Core</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* @author Stephen Mallette (http://stephen.genoprime.com)
*/
public final class Gremlin {
private final static String gremlinVersion = "3.7.1"; // DO NOT MODIFY - Configured automatically by Maven Replacer Plugin
private final static String gremlinVersion = "3.7.2-SNAPSHOT"; // DO NOT MODIFY - Configured automatically by Maven Replacer Plugin

private Gremlin() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,16 @@ else if (stepMethod.getName().equals("to") || stepMethod.getName().equals("from"
}
} else if (stepMethod.getName().equals("math")) {
list.add(arguments[0] = random.nextInt(100) + " + " + random.nextInt(100));
} else if (stepMethod.getName().equals("project")) {
// project has two arguments [String, String[]]
list.add(arguments[0] = randomString(random));
arguments[1] = new String[random.nextInt(10) + 1];
for (int j = 0; j < ((String[]) arguments[1]).length; j++) {
((String[]) arguments[1])[j] = arguments[0] + randomString(random); // adds argument[0] to avoid getting its duplicate in argument[1]
}
// remove duplicates in argument[1] if any
arguments[1] = Arrays.stream((String[]) arguments[1]).distinct().toArray(String[]::new);
list.addAll(Arrays.asList((String[]) arguments[1]));
} else {
for (int i = 0; i < stepMethod.getParameterTypes().length; i++) {
final Class<?> type = stepMethod.getParameterTypes()[i];
Expand Down
2 changes: 1 addition & 1 deletion gremlin-dotnet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ limitations under the License.
<parent>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>tinkerpop</artifactId>
<version>3.7.1</version>
<version>3.7.2-SNAPSHOT</version>
</parent>
<artifactId>gremlin-dotnet</artifactId>
<name>Apache TinkerPop :: Gremlin.Net</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ limitations under the License.
<ProjectReference Include="../Gremlin.Net/Gremlin.Net.csproj" />

<!-- do not edit the version directly - maven updates it automatically -->
<PackageReference Include="Gremlin.Net" Version="3.7.1" />
<PackageReference Include="Gremlin.Net" Version="3.7.2-SNAPSHOT" />
</ItemGroup>

</Project>
Loading

0 comments on commit 2e84778

Please sign in to comment.