Copilot commented on code in PR #14907:
URL: https://github.com/apache/gravitino/pull/14907#discussion_r4538098522
##########
core/src/main/java/org/apache/gravitino/listener/api/event/OperationType.java:
##########
@@ -34,6 +34,38 @@ public enum OperationType {
REGISTER_TABLE,
TABLE_EXISTS,
+ // Domain operations
+ /** Domain operation: ListDomains. */
+ LIST_DOMAIN,
+ /** Domain operation: ListDomainsInfo. */
+ LIST_DOMAINS_INFO,
+ /** Domain operation: GetDomain. */
+ GET_DOMAIN,
+ /** Domain operation: CreateDomain. */
+ CREATE_DOMAIN,
+ /** Domain operation: AlterDomain. */
+ ALTER_DOMAIN,
+ /** Domain operation: DeleteDomain. */
+ DELETE_DOMAIN,
+ /** Domain operation: PublishDomain. */
+ PUBLISH_DOMAIN,
+ /** Domain operation: UnpublishDomain. */
+ UNPUBLISH_DOMAIN,
+ /** Domain operation: UpdateDomainBackingTag. */
+ UPDATE_DOMAIN_BACKING_TAG,
+ /** Domain operation: AttachDomain. */
+ ATTACH_DOMAIN,
+ /** Domain operation: DetachDomain. */
+ DETACH_DOMAIN,
+ /** Domain operation: ListSubdomains. */
+ LIST_SUBDOMAIN,
Review Comment:
`LIST_SUBDOMAIN` is inconsistent with both the operation name
(`listSubdomains`) and the adjacent `LIST_SUBDOMAINS_INFO`. Since this is a
newly added public enum constant, consider renaming it to `LIST_SUBDOMAINS`
(and updating corresponding event classes/mappings/tests) to avoid long-term
API inconsistency.
--
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]