FANNG1 commented on code in PR #6746:
URL: https://github.com/apache/gravitino/pull/6746#discussion_r2016453968
##########
core/src/main/java/org/apache/gravitino/listener/api/event/AccessControlEventDispatcher.java:
##########
@@ -86,8 +90,12 @@ public boolean removeUser(String metalake, String user)
throws NoSuchMetalakeExc
eventBus.dispatchEvent(new RemoveUserPreEvent(initiator,
NameIdentifier.of(metalake), user));
try {
- // TODO: add Event
- return dispatcher.removeUser(metalake, user);
+ boolean isExists = dispatcher.removeUser(metalake, user);
+ eventBus.dispatchEvent(
+ new RemoveUserEvent(
+ initiator, NameIdentifier.of(metalake), new UserInfo(user),
isExists));
Review Comment:
using user name is enough?
--
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]