From 753ea7350948cd082961860cfc59a63ec5424695 Mon Sep 17 00:00:00 2001 From: Coen Warmer Date: Fri, 24 Mar 2023 19:56:15 +0100 Subject: [PATCH] Update pipeline config --- .buildkite/scripts/pipelines/pull_request/pipeline.ts | 7 ++++++- .eslintrc.js | 8 +++++++- .../exploratory_view/public/hooks/use_es_search.ts | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 679f9299c62eb..f1605246e08a6 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -137,7 +137,12 @@ const uploadPipeline = (pipelineContent: string | object) => { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/osquery_cypress.yml')); } - if (await doAnyChangesMatch([/^x-pack\/plugins\/observability/])) { + if ( + await doAnyChangesMatch([ + /^x-pack\/plugins\/observability/, + /^x-pack\/plugins\/exploratory_view/, + ]) + ) { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/observability_plugin.yml')); } diff --git a/.eslintrc.js b/.eslintrc.js index 51cd3440b87d5..f98b8524bf36e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -867,6 +867,7 @@ module.exports = { files: [ 'x-pack/plugins/apm/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/observability/**/*.{js,mjs,ts,tsx}', + 'x-pack/plugins/exploratory_view/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/ux/**/*.{js,mjs,ts,tsx}', ], rules: { @@ -886,7 +887,11 @@ module.exports = { }, }, { - files: ['x-pack/plugins/apm/**/*.stories.*', 'x-pack/plugins/observability/**/*.stories.*'], + files: [ + 'x-pack/plugins/apm/**/*.stories.*', + 'x-pack/plugins/observability/**/*.stories.*', + 'x-pack/plugins/exploratory_view/**/*.stories.*', + ], rules: { 'react/function-component-definition': [ 'off', @@ -901,6 +906,7 @@ module.exports = { files: [ 'x-pack/plugins/apm/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/observability/**/*.{js,mjs,ts,tsx}', + 'x-pack/plugins/exploratory_view/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/ux/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/synthetics/**/*.{js,mjs,ts,tsx}', 'x-pack/plugins/infra/**/*.{js,mjs,ts,tsx}', diff --git a/x-pack/plugins/exploratory_view/public/hooks/use_es_search.ts b/x-pack/plugins/exploratory_view/public/hooks/use_es_search.ts index 8bdc2343f6327..caa42426b6344 100644 --- a/x-pack/plugins/exploratory_view/public/hooks/use_es_search.ts +++ b/x-pack/plugins/exploratory_view/public/hooks/use_es_search.ts @@ -73,7 +73,6 @@ export const useEsSearch = { if (isErrorResponse(err)) { - console.error(err); if (addInspectorRequest) { addInspectorRequest({ data: { @@ -102,6 +101,7 @@ export const useEsSearch =