From f43131c99ebe9e132a7ae60ca8871f23380aea81 Mon Sep 17 00:00:00 2001 From: ebb-tide Date: Thu, 17 May 2018 14:15:15 -0700 Subject: [PATCH] Add temporary overrides to suggestions --- ui/src/ifql/containers/IFQLPage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/ifql/containers/IFQLPage.tsx b/ui/src/ifql/containers/IFQLPage.tsx index 0df31bcb74..fef4d6bf25 100644 --- a/ui/src/ifql/containers/IFQLPage.tsx +++ b/ui/src/ifql/containers/IFQLPage.tsx @@ -380,6 +380,11 @@ export class IFQLPage extends PureComponent { try { const ast = await getAST({url: links.ast, body: script}) + const suggs = this.state.suggestions + suggs[17] = { + name: 'join', + params: {tables: 'array', on: 'string', fn: 'function'}, + } const body = bodyNodes(ast, this.state.suggestions) const status = {type: 'success', text: ''} this.setState({ast, script, body, status})