imbajin commented on code in PR #3159:
URL: https://github.com/apache/hugegraph/pull/3159#discussion_r3804375697


##########
hugegraph-server/hugegraph-api/src/main/java/org/apache/hugegraph/auth/HugeGraphAuthProxy.java:
##########
@@ -2461,4 +2518,36 @@ public String toString() {
             return this.origin.toString();
         }
     }
+
+    private static Set<HugePermission> traversalPermissions(
+                                       Traversal.Admin<?, ?> traversal) {
+        Set<HugePermission> permissions = EnumSet.noneOf(HugePermission.class);
+        collectTraversalPermissions(traversal, permissions);
+        return permissions;
+    }
+
+    private static void collectTraversalPermissions(
+                        Traversal.Admin<?, ?> traversal,
+                        Set<HugePermission> permissions) {
+        for (Step<?, ?> step : traversal.getSteps()) {
+            if (step instanceof AddVertexStartStep ||

Review Comment:
   Version-bound fixture selection finalized in b94347b5. The compatibility 
sources now live under `src/test-tinkerpop-3.5.1/java`, and build-helper adds 
only `src/test-tinkerpop-${tinkerpop.version}/java`. Current 3.5.1 runs retain 
all 28 focused tests; an effective-POM check with `-Dtinkerpop.version=3.7.6` 
selects `src/test-tinkerpop-3.7.6/java`, which is absent, so the 3.5.1 fixtures 
cannot silently shadow real 3.7 classes. Targeted Checkstyle passed; exact 
merge fixture counts remain target/classes=0, main JAR=0, target/test-classes=2.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to