You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/05/13 21:45:32 UTC

[GitHub] [incubator-druid] jon-wei commented on a change in pull request #7647: fix lookup editor to use lookup tiers instead of historical tiers

jon-wei commented on a change in pull request #7647: fix lookup editor to use lookup tiers instead of historical tiers
URL: https://github.com/apache/incubator-druid/pull/7647#discussion_r283550456
 
 

 ##########
 File path: web-console/src/views/lookups-view.tsx
 ##########
 @@ -89,8 +91,8 @@ export class LookupsView extends React.Component<LookupsViewProps, LookupsViewSt
   componentDidMount(): void {
     this.lookupsGetQueryManager = new QueryManager({
       processQuery: async (query: string) => {
-        const tiersResp = await axios.get('/druid/coordinator/v1/tiers');
-        const tiers = tiersResp.data;
+        const tiersResp = await axios.get('/druid/coordinator/v1/lookups/config?discover=true');
+        const tiers = tiersResp.data && tiersResp.data.lenghth > 0 ? tiersResp.data : [DEFAULT_LOOKUP_TIER];
 
 Review comment:
   Is `lenghth` a typo here?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org