hdygxsj commented on code in PR #9585:
URL: https://github.com/apache/gravitino/pull/9585#discussion_r2667415481


##########
server/src/main/java/org/apache/gravitino/server/web/filter/authorization/AuthorizeExecutorFactory.java:
##########
@@ -23,45 +23,37 @@
 import org.apache.gravitino.Entity;
 import org.apache.gravitino.NameIdentifier;
 import 
org.apache.gravitino.server.authorization.annotations.AuthorizationRequest;
-import 
org.apache.gravitino.server.authorization.expression.AuthorizationExpressionEvaluator;
 
 public class AuthorizeExecutorFactory {
 
   public static AuthorizationExecutor create(
       String expression,
       AuthorizationRequest.RequestType requestType,
       Map<Entity.EntityType, NameIdentifier> metadataContext,
-      AuthorizationExpressionEvaluator authorizationExpressionEvaluator,
       Map<String, Object> pathParams,
       Optional<String> entityType,
       Parameter[] parameters,
-      Object[] args) {
+      Object[] args,
+      String secondaryExpression,
+      String secondaryExpressionCondition) {

Review Comment:
   I'm wondering if modifying the annotation structure for this particular 
scenario might not be a good idea—mainly because it's unclear whether other 
interfaces will have similar scenarios in the future, which could lead to 
things getting messy later on.
   
   Changing the input parameter here to AuthorizationExpression might be 
slightly better.
   



-- 
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]

Reply via email to