leventov commented on a change in pull request #7789: Druid basic 
authentication class composition config
URL: https://github.com/apache/incubator-druid/pull/7789#discussion_r289477254
 
 

 ##########
 File path: 
extensions-core/druid-basic-security/src/main/java/org/apache/druid/security/basic/authentication/db/updater/NoopBasicAuthenticatorMetadataStorageUpdater.java
 ##########
 @@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.druid.security.basic.authentication.db.updater;
+
+import 
org.apache.druid.security.basic.authentication.entity.BasicAuthenticatorCredentialUpdate;
+import 
org.apache.druid.security.basic.authentication.entity.BasicAuthenticatorUser;
+
+import javax.annotation.Nullable;
+import java.util.Collections;
+import java.util.Map;
+
+public class NoopBasicAuthenticatorMetadataStorageUpdater implements 
BasicAuthenticatorMetadataStorageUpdater
 
 Review comment:
   Sorry, but this doesn't make sense to me. These comments just repeat the 
code below. I don't actually understand what does "node supporting/not 
supporting authenticator metadata storage update" mean. Too many noun words in 
a row, and without connection to the real world.
   
   I think it would be more understandable if was explained by example, e. g. 
"Druid's Xxx (broker/coordinator/router/historical/whatever) nodes use this 
because when requests come from them from nodes Yyy they are already 
authorized, so these nodes don't need to send delete/create users"... - 
something like this, a small story. Could you please rewrite the text like this?
   
   The problem stems from `BasicAuthenticatorMetadataStorageUpdater` itself 
which class-level Javadoc comment just repeats the code without giving 
understanding. Could you please upgrade its Javadoc? (Then Javadocs for Noop 
classes can be shorter and refer to `BasicAuthenticatorMetadataStorageUpdater` 
instead.)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to