[
https://issues.apache.org/jira/browse/TINKERPOP-3186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18034089#comment-18034089
]
ASF GitHub Bot commented on TINKERPOP-3186:
-------------------------------------------
vkagamlyk commented on code in PR #3257:
URL: https://github.com/apache/tinkerpop/pull/3257#discussion_r2476423145
##########
gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/DriverRemoteConnection/GraphTraversalTests.cs:
##########
@@ -330,7 +330,7 @@ public void shouldUseMaterializedPropertiesTokenInVP()
{
Assert.NotNull(vp);
// GraphSON will deserialize into null and GraphBinary to []
- Assert.True(vp.Properties == null || vp.Properties.Length ==
0);
+ Assert.True(vp.Properties.Length == 0);
Review Comment:
nit: can be simplified to something like `Assert.Empty(vp.Properties)`, same
below
> Inconsistency of properties data type on Element
> ------------------------------------------------
>
> Key: TINKERPOP-3186
> URL: https://issues.apache.org/jira/browse/TINKERPOP-3186
> Project: TinkerPop
> Issue Type: Improvement
> Components: javascript
> Affects Versions: 3.7.4
> Reporter: Stephen Mallette
> Assignee: Stephen Mallette
> Priority: Blocker
> Labels: breaking
>
> The {{properties}} property on {{Element}} in javascript has datatypes
> inconsistent with Java and other GLVs where it can be a {{Map}}, {{List}} or
> {{undefined}} depending on serializer or other factors (and we go through
> great lengths to assert all of this in tests for some reason). The type
> should be {{List}}. Use an empty list if {{null}} or {{undefined}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)