Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-21 Thread via GitHub
xiazcy merged PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@tinkerpop

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-18 Thread via GitHub
xiazcy commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2176537502 Thank you for the contribution! As lazy consensus has been reached, I'll be merging this PR today if there are no further comments. One small note, it does look like this PR is mi

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-12 Thread via GitHub
FlorianHockmann commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1636336119 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -119,6 +134,13 @@ export class VertexProperty extends Element {

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-12 Thread via GitHub
FlorianHockmann commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1636325328 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -43,27 +42,32 @@ export class Graph { } } -class Element { +c

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-12 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1636140098 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -43,27 +42,32 @@ export class Graph { } } -class Element { +class Elemen

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-12 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1636137624 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -43,27 +42,32 @@ export class Graph { } } -class Element { +class Elemen

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
joshsh commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632159790 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -43,27 +42,32 @@ export class Graph { } } -class Element { +class Elem

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
joshsh commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632159247 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -43,27 +42,32 @@ export class Graph { } } -class Element { +class Elem

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632121152 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -43,27 +42,32 @@ export class Graph { } } -class Element { +class Elemen

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632124863 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/io/type-serializers.ts: ## @@ -349,9 +349,9 @@ export class EdgeSerializer extends TypeSeriali

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632124783 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -73,20 +77,26 @@ export class Vertex = Record> extends } } -export clas

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632122117 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -119,6 +134,13 @@ export class VertexProperty extends Element { } } +ex

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632121441 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -73,20 +77,26 @@ export class Vertex = Record> extends } } -export clas

Re: [PR] feat: typescript utilities [tinkerpop]

2024-06-08 Thread via GitHub
tien commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1632121152 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -43,27 +42,32 @@ export class Graph { } } -class Element { +class Elemen

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-31 Thread via GitHub
FlorianHockmann commented on code in PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#discussion_r1622405611 ## gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/graph.ts: ## @@ -73,20 +77,26 @@ export class Vertex = Record> extends } } -

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-22 Thread via GitHub
tien commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2124083417 Hey @vkagamlyk, as per my comment [here](https://github.com/apache/tinkerpop/pull/2599#issuecomment-2118831749) I've removed all none GLV's feature parity changes, so this PR will just be

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-21 Thread via GitHub
vkagamlyk commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2123627926 Hi @tien, I think this is a good direction for improvement for TinkerPop 5/6 when/if we introduce schema, but now it is important to have similar capabilities in all GLV's.

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-18 Thread via GitHub
tien commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2118834947 I'm happy to pursue this with a Jira ticket or via the dev list as mentioned if you guys think a utility like this is valuable to be included in the core gremlin lib. -- This is an auto

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-18 Thread via GitHub
tien commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2118834748 I mainly included the utility function as a demonstration of what a strong TypeScript definition can enable. As for the benefit of having an utility function like that, with TypeScri

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-18 Thread via GitHub
tien commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2118831749 Hey guys, thanks for the feedbacks, yes that make sense. So I've reduced the scope of the PR change to just improving the TypeScript definition for graph structures: vertex, edge, etc --

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-17 Thread via GitHub
Cole-Greer commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2118255079 Hi @tien, thanks for putting this together. I agree with Florian that for this type of change, it is best to start with a JIRA or dev list post before starting implementation.

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-15 Thread via GitHub
FlorianHockmann commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2112453850 If I'm not mistaken, then this PR does two things which are mostly separate from each other, right? It extends the type definitions for existing types like `Vertex`, `Edge`, and

Re: [PR] feat: typescript utilities [tinkerpop]

2024-05-09 Thread via GitHub
codecov-commenter commented on PR #2599: URL: https://github.com/apache/tinkerpop/pull/2599#issuecomment-2102504936 ## [Codecov](https://app.codecov.io/gh/apache/tinkerpop/pull/2599?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comme

[PR] feat: typescript utilities [tinkerpop]

2024-05-09 Thread via GitHub
tien opened a new pull request, #2599: URL: https://github.com/apache/tinkerpop/pull/2599 - Improve structures type definitions - Add fully type safe utility to easily parse and interact with vertex properties: ```ts const rawVertex = { id: 0, label: 'thing', prop