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/09/18 15:26:56 UTC

[GitHub] [incubator-druid] ccaominh commented on a change in pull request #8543: Web console: prevent extra trim in auto complete

ccaominh commented on a change in pull request #8543: Web console: prevent extra trim in auto complete
URL: https://github.com/apache/incubator-druid/pull/8543#discussion_r325743829
 
 

 ##########
 File path: web-console/src/views/query-view/query-input/query-input.tsx
 ##########
 @@ -106,11 +106,10 @@ export class QueryInput extends React.PureComponent<QueryInputProps, QueryInputS
       },
       getDocTooltip: (item: any) => {
         if (item.meta === 'function') {
-          const functionName = item.caption.slice(0, -2);
           item.docHTML = `
 <div class="function-doc">
   <div class="function-doc-name">
-    <b>${escape(functionName)}</b>
+    <b>${escape(item.caption)}</b>
 
 Review comment:
   May be worth adding unit test

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