TungYuChiang commented on code in PR #5998:
URL: https://github.com/apache/gravitino/pull/5998#discussion_r1917503044


##########
core/src/main/java/org/apache/gravitino/listener/TagEventDispatcher.java:
##########
@@ -57,8 +68,9 @@ public TagEventDispatcher(EventBus eventBus, TagDispatcher 
dispatcher) {
   public String[] listTags(String metalake) {
     // TODO: listTagsPreEvent
     try {
-      // TODO: listTagsEvent
-      return dispatcher.listTags(metalake);
+      String[] tagNames = dispatcher.listTags(metalake);
+      eventBus.dispatchEvent(new 
ListTagEvent(PrincipalUtils.getCurrentUserName(), metalake));

Review Comment:
   > could you rename ListTagsFailureEvent to ListTagFailureEvent to keep 
consistent with other list event?
   
   @FANNG1 , Would it be better to rename `ListTagEvent` to `ListTagsEvent`?
   



-- 
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: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to