mirror of
https://github.com/apache/superset.git
synced 2026-04-26 11:34:27 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user