mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[ES|QL] Hides the METRICS command (#190208)
## Summary Thanks to the hidden property added [here](https://github.com/elastic/kibana/pull/189827) we can now hide the METRICS command.
This commit is contained in:
parent
8905ecd6df
commit
1391836d7d
2 changed files with 4 additions and 2 deletions
|
@ -116,7 +116,8 @@ describe('autocomplete', () => {
|
|||
},
|
||||
});
|
||||
|
||||
const sourceCommands = ['row', 'from', 'show', 'metrics'];
|
||||
// const sourceCommands = ['row', 'from', 'show', 'metrics']; Uncomment when metrics is being released
|
||||
const sourceCommands = ['row', 'from', 'show'];
|
||||
|
||||
describe('New command', () => {
|
||||
testSuggestions(
|
||||
|
@ -1278,7 +1279,7 @@ describe('autocomplete', () => {
|
|||
// Source command
|
||||
testSuggestions(
|
||||
'F',
|
||||
['FROM $0', 'ROW $0', 'SHOW $0', 'METRICS $0'].map(attachTriggerCommand).map(attachAsSnippet),
|
||||
['FROM $0', 'ROW $0', 'SHOW $0'].map(attachTriggerCommand).map(attachAsSnippet),
|
||||
undefined,
|
||||
1
|
||||
);
|
||||
|
|
|
@ -192,6 +192,7 @@ export const commandDefinitions: CommandDefinition[] = [
|
|||
},
|
||||
{
|
||||
name: 'metrics',
|
||||
hidden: true,
|
||||
description: i18n.translate('kbn-esql-validation-autocomplete.esql.definitions.metricsDoc', {
|
||||
defaultMessage:
|
||||
'A metrics-specific source command, use this command to load data from TSDB indices. ' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue