kevdoran commented on a change in pull request #161: NIFIREG-234: Publish 
events for tenant CRUD
URL: https://github.com/apache/nifi-registry/pull/161#discussion_r264774557
 
 

 ##########
 File path: 
nifi-registry-core/nifi-registry-provider-api/src/main/java/org/apache/nifi/registry/hook/EventFieldName.java
 ##########
 @@ -26,6 +26,6 @@
     EXTENSION_BUNDLE_ID,
     VERSION,
     USER,
-    COMMENT;
-
+    USER_GROUP,
+    COMMENT
 
 Review comment:
   I'n not sure we should reuse the EventFieldName.USER for the the user that 
was created. In other contexts it indicates the user that performed the 
operation (speaking of which, maybe we want that information for tenant CRUD 
events?)
   
   I would suggest adding new EventFieldNames that align with the the tenant 
data model, such as `TENANT_ID` and `TENANT_IDENTITY` that can be used for all 
tenant types, or if we want to break it down into users and groups, `USER_ID`, 
`USER_IDENTITY`, `USER_GROUP_ID`, `USER_GROUP_IDENTITY`. What do you think?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to