[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:
Stratoula Kalafateli 2024-08-09 12:37:43 +02:00 committed by GitHub
parent 8905ecd6df
commit 1391836d7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -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
);

View file

@ -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. ' +