adnanhemani commented on code in PR #2998:
URL: https://github.com/apache/polaris/pull/2998#discussion_r2505751420


##########
runtime/service/src/main/java/org/apache/polaris/service/admin/PolarisCatalogsEventServiceDelegator.java:
##########
@@ -51,37 +53,50 @@ public class PolarisCatalogsEventServiceDelegator 
implements PolarisCatalogsApiS
 
   @Inject @Delegate PolarisCatalogsApiService delegate;
   @Inject PolarisEventListener polarisEventListener;
+  @Inject PolarisEventMetadataFactory eventMetadataFactory;
 
   @Override
   public Response createCatalog(
       CreateCatalogRequest request, RealmContext realmContext, SecurityContext 
securityContext) {
     polarisEventListener.onBeforeCreateCatalog(
-        new 
CatalogsServiceEvents.BeforeCreateCatalogEvent(request.getCatalog().getName()));
+        new CatalogsServiceEvents.BeforeCreateCatalogEvent(
+            PolarisEvent.createEventId(),

Review Comment:
   Wanted to see your thoughts on this: can we collapse Event ID into the 
EventMetadata as well? I think it makes sense as part of the "metadata" of the 
event and may help us save many lines of code uniformly across all events.



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