You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2022/11/28 14:03:59 UTC

[GitHub] [tinkerpop] FlorianHockmann opened a new pull request, #1875: TINKERPOP-2348 Add nullable annotations also to tests

FlorianHockmann opened a new pull request, #1875:
URL: https://github.com/apache/tinkerpop/pull/1875

   This is a follow-up to #1867 to now also enable nullable annotations to tests.
   
   https://issues.apache.org/jira/browse/TINKERPOP-2348
   
   Only the generated Gherkin test traversals are missing as we would have to let the Java `DotNetTranslator` produce C# code with nullable annotations. I think we should do that at some point in the future as nullable annotations are only enabled since .NET 6 by default and only for new projects. So, many users are probably still not using them.
   
   Adding the annotations also in tests revealed two (well actually three) more places where `null` should be allowed in Gremlin.Net itself: In `Traversal.Equals()` and in the `From()`/`To()` steps if the argument is a `Vertex`. While `null` is still not really allowed there, Gremlin throws a more meaningful exception message if it gets `null` and we might change that in the future to somehow allow `null` maybe.
   
   VOTE +1


-- 
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-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tinkerpop] FlorianHockmann commented on a diff in pull request #1875: TINKERPOP-2348 Add nullable annotations also to tests

Posted by GitBox <gi...@apache.org>.
FlorianHockmann commented on code in PR #1875:
URL: https://github.com/apache/tinkerpop/pull/1875#discussion_r1034489151


##########
gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs:
##########
@@ -127,20 +127,20 @@ public void TranslateTraversal(string traversalText)
                 throw new InvalidOperationException("g should be a traversal source");
             }
 
-            if (ScenarioData.CurrentFeature.Tags.Select(t => t.Name).ToList().Contains("@GraphComputerOnly"))
+            if (ScenarioData.CurrentFeature!.Tags.Select(t => t.Name).ToList().Contains("@GraphComputerOnly"))

Review Comment:
   It shouldn't be needed. I updated the commit to include your suggestion.



-- 
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-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tinkerpop] codecov-commenter commented on pull request #1875: TINKERPOP-2348 Add nullable annotations also to tests

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #1875:
URL: https://github.com/apache/tinkerpop/pull/1875#issuecomment-1330341417

   # [Codecov](https://codecov.io/gh/apache/tinkerpop/pull/1875?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#1875](https://codecov.io/gh/apache/tinkerpop/pull/1875?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (d24b489) into [master](https://codecov.io/gh/apache/tinkerpop/commit/622a54ef6e7b9f218b9ee3aae229ed7a6ca11068?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (622a54e) will **decrease** coverage by `5.34%`.
   > The diff coverage is `n/a`.
   
   > :exclamation: Current head d24b489 differs from pull request most recent head 0c377de. Consider uploading reports for the commit 0c377de to get more accurate results
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #1875      +/-   ##
   ============================================
   - Coverage     69.46%   64.11%   -5.35%     
   ============================================
     Files           875       23     -852     
     Lines         41794     3684   -38110     
     Branches       5630        0    -5630     
   ============================================
   - Hits          29031     2362   -26669     
   + Misses        10777     1154    -9623     
   + Partials       1986      168    -1818     
   ```
   
   
   | [Impacted Files](https://codecov.io/gh/apache/tinkerpop/pull/1875?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...e/tinkerpop/gremlin/process/traversal/Compare.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC9Db21wYXJlLmphdmE=) | | |
   | [...gremlin/process/traversal/step/ProfilingAware.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC9zdGVwL1Byb2ZpbGluZ0F3YXJlLmphdmE=) | | |
   | [...rpop/gremlin/console/commands/SubmitCommand.groovy](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb25zb2xlL3NyYy9tYWluL2dyb292eS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL2NvbnNvbGUvY29tbWFuZHMvU3VibWl0Q29tbWFuZC5ncm9vdnk=) | | |
   | [...gremlin/process/traversal/util/MutableMetrics.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC91dGlsL011dGFibGVNZXRyaWNzLmphdmE=) | | |
   | [...l/strategy/optimization/FilterRankingStrategy.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC9zdHJhdGVneS9vcHRpbWl6YXRpb24vRmlsdGVyUmFua2luZ1N0cmF0ZWd5LmphdmE=) | | |
   | [...ache/tinkerpop/gremlin/process/traversal/Pick.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC9QaWNrLmphdmE=) | | |
   | [...pop/gremlin/server/auth/AllowAllAuthenticator.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL3NlcnZlci9hdXRoL0FsbG93QWxsQXV0aGVudGljYXRvci5qYXZh) | | |
   | [.../tinkerpop/gremlin/process/traversal/Bytecode.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC9CeXRlY29kZS5qYXZh) | | |
   | [.../server/handler/WebSocketAuthorizationHandler.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1zZXJ2ZXIvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL3RpbmtlcnBvcC9ncmVtbGluL3NlcnZlci9oYW5kbGVyL1dlYlNvY2tldEF1dGhvcml6YXRpb25IYW5kbGVyLmphdmE=) | | |
   | [...sal/traverser/O\_OB\_S\_SE\_SL\_TraverserGenerator.java](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-Z3JlbWxpbi1jb3JlL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS90aW5rZXJwb3AvZ3JlbWxpbi9wcm9jZXNzL3RyYXZlcnNhbC90cmF2ZXJzZXIvT19PQl9TX1NFX1NMX1RyYXZlcnNlckdlbmVyYXRvci5qYXZh) | | |
   | ... and [842 more](https://codecov.io/gh/apache/tinkerpop/pull/1875/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
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-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tinkerpop] FlorianHockmann merged pull request #1875: TINKERPOP-2348 Add nullable annotations also to tests

Posted by GitBox <gi...@apache.org>.
FlorianHockmann merged PR #1875:
URL: https://github.com/apache/tinkerpop/pull/1875


-- 
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-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tinkerpop] vkagamlyk commented on a diff in pull request #1875: TINKERPOP-2348 Add nullable annotations also to tests

Posted by GitBox <gi...@apache.org>.
vkagamlyk commented on code in PR #1875:
URL: https://github.com/apache/tinkerpop/pull/1875#discussion_r1034208025


##########
gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Gherkin/CommonSteps.cs:
##########
@@ -127,20 +127,20 @@ public void TranslateTraversal(string traversalText)
                 throw new InvalidOperationException("g should be a traversal source");
             }
 
-            if (ScenarioData.CurrentFeature.Tags.Select(t => t.Name).ToList().Contains("@GraphComputerOnly"))
+            if (ScenarioData.CurrentFeature!.Tags.Select(t => t.Name).ToList().Contains("@GraphComputerOnly"))

Review Comment:
   why is there `.ToList()` needed? 
   ```suggestion
               if (ScenarioData.CurrentFeature!.Tags.Any(t => t.Name == "@GraphComputerOnly"))
   ```



-- 
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-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tinkerpop] vkagamlyk commented on pull request #1875: TINKERPOP-2348 Add nullable annotations also to tests

Posted by GitBox <gi...@apache.org>.
vkagamlyk commented on PR #1875:
URL: https://github.com/apache/tinkerpop/pull/1875#issuecomment-1330927282

   VOTE +1


-- 
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-unsubscribe@tinkerpop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org