vogievetsky commented on a change in pull request #7493: No SQL mode in web 
console
URL: https://github.com/apache/incubator-druid/pull/7493#discussion_r276869852
 
 

 ##########
 File path: web-console/src/views/servers-view.tsx
 ##########
 @@ -100,14 +124,40 @@ export class ServersView extends 
React.Component<ServersViewProps, ServersViewSt
     );
   }
 
+  static getServers = async (): Promise<ServerQueryResultRow[]> => {
+    const allServerResp = await 
axios.get('/druid/coordinator/v1/servers?simple');
+    const allServers = allServerResp.data;
+    return allServers.reduce((result: ServerQueryResultRow[], s: any) => {
 
 Review comment:
   are... are.. you using reduce to filter?

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