Skip to content

Commit

Permalink
[ES|QL] Hides the METRICS command (elastic#190208)
Browse files Browse the repository at this point in the history
## Summary

Thanks to the hidden property added
[here](elastic#189827) we can now hide
the METRICS command.
  • Loading branch information
stratoula authored Aug 9, 2024
1 parent 8905ecd commit 1391836
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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. ' +
Expand Down

0 comments on commit 1391836

Please sign in to comment.