SbloodyS commented on code in PR #15933:
URL: 
https://github.com/apache/dolphinscheduler/pull/15933#discussion_r1584411557


##########
dolphinscheduler-ui/src/locales/en_US/user-dropdown.ts:
##########
@@ -18,5 +18,6 @@
 export default {
   profile: 'Profile',
   password: 'Password',
+  product: 'Product',

Review Comment:
   I would prefer to use `about` instead of `Product`.



##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/UiPluginController.java:
##########
@@ -30,20 +29,16 @@
 
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestAttribute;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.ResponseStatus;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;

Review Comment:
   Wildcard import is not allowed.



##########
dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/controller/UiPluginControllerTest.java:
##########
@@ -91,4 +103,33 @@ public void testQueryUiPluginDetailById() throws Exception {
                 
JSONUtils.parseObject(mvcResult.getResponse().getContentAsString(), 
Result.class);
         
assertThat(actualResponseContent.toString()).isEqualTo(expectResponseContent.toString());
     }
+
+    @Test
+    public void testQueryProductInfo() throws Exception {
+//        Map<String, Object> mockResult = new HashMap<>();
+//        mockResult.put(Constants.STATUS, Status.SUCCESS);

Review Comment:
   Please remove useless comments.



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