jerryshao commented on code in PR #12549:
URL: https://github.com/apache/gravitino/pull/12549#discussion_r3850584452


##########
api/src/main/java/org/apache/gravitino/policy/PolicyOperations.java:
##########
@@ -106,4 +106,27 @@ Policy alterPolicy(String name, PolicyChange... changes)
    * @return True if the policy is deleted, false if the policy does not exist.
    */
   boolean deletePolicy(String name);
+
+  /**
+   * Lists tag names directly associated with a policy.
+   *
+   * @param policyName The policy name.
+   * @return The directly associated tag names.
+   * @throws UnsupportedOperationException If listing policy-to-tag 
associations is not supported.
+   */
+  default String[] listTagsForPolicy(String policyName) {
+    throw new UnsupportedOperationException("Listing tags for a policy is not 
supported");
+  }

Review Comment:
   My feeling is that this interface is not so useful. It is just the tag name, 
we cannot differentiate what the actual tag assignment is and what is the 
selector enforced in the policy.



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