FANNG1 commented on code in PR #5998:
URL: https://github.com/apache/gravitino/pull/5998#discussion_r1918618665
##########
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:
Yes, `ListTagsEvent` is 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]