feat: show missing parameters in query (#12049)

* feat: show missing parameters in query

* Fix lint

* Address comments

* Simplify error message

* Use f-string in helper function
This commit is contained in:
Beto Dealmeida
2020-12-15 18:47:40 -08:00
committed by GitHub
parent 8da1900d8a
commit 8bda6b0bd9
11 changed files with 108 additions and 13 deletions

View File

@@ -566,13 +566,15 @@ class SqlEditor extends React.PureComponent {
<Checkbox checked={this.state.autocompleteEnabled} />{' '}
{t('Autocomplete')}
</Button>{' '}
<TemplateParamsEditor
language="json"
onChange={params => {
this.props.actions.queryEditorSetTemplateParams(qe, params);
}}
code={qe.templateParams}
/>
{isFeatureEnabled(FeatureFlag.ENABLE_TEMPLATE_PROCESSING) && (
<TemplateParamsEditor
language="json"
onChange={params => {
this.props.actions.queryEditorSetTemplateParams(qe, params);
}}
code={qe.templateParams}
/>
)}
{limitWarning}
{this.props.latestQuery && (
<Timer