sunyuhan1998 commented on code in PR #11210:
URL: https://github.com/apache/gravitino/pull/11210#discussion_r3301337128


##########
clients/client-python/gravitino/client/dto_converters.py:
##########
@@ -325,3 +332,20 @@ def to_tag_update_request(
             return 
TagUpdateRequest.RemoveTagPropertyRequest(change.removed_property)
 
         raise IllegalArgumentException(f"Unknown change type: {type(change)}")
+
+    @staticmethod
+    def to_privilege_dto(privilege: Privilege) -> PrivilegeDTO:
+        return PrivilegeDTO(privilege.name(), privilege.condition())
+
+    @staticmethod
+    def from_privilege_dto(dto: PrivilegeDTO) -> Privilege:
+        return dto

Review Comment:
   You're right, I have removed it. `from_privilege_dto` had no callers in this 
PR.



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