From 5f12db95df9e1ba706ec123f6eda541f9935e68c Mon Sep 17 00:00:00 2001 From: Eugene Lee Date: Mon, 28 Feb 2022 09:16:48 -0800 Subject: [PATCH] Make base query immutable (#500) Signed-off-by: Eugene Lee --- .../__snapshots__/create.test.tsx.snap | 2066 ++++++++++------- .../__snapshots__/log_config.test.tsx.snap | 734 +++--- .../__tests__/create.test.tsx | 56 + .../__tests__/log_config.test.tsx | 16 + .../application_analytics/app_analytics.scss | 19 + .../config_components/log_config.tsx | 81 +- .../components/create.tsx | 2 +- .../components/common/search/autocomplete.tsx | 3 + 8 files changed, 1798 insertions(+), 1179 deletions(-) create mode 100644 dashboards-observability/public/components/application_analytics/app_analytics.scss diff --git a/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap b/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap index 2380df385..67e7880b5 100644 --- a/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap +++ b/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/create.test.tsx.snap @@ -234,75 +234,98 @@ Object { class="euiAccordion__padding--l" >
- +
+ You can't change the base query after the application is created. +
+
- -
-
- The default logs view in the application will be filtered by this query. + +
+ +
+
+ The default logs view in the application will be filtered by this query. +
+ @@ -1419,75 +1442,98 @@ Object { class="euiAccordion__padding--l" >
- +
+ You can't change the base query after the application is created. +
+
- -
-
- The default logs view in the application will be filtered by this query. + +
+ +
+
+ The default logs view in the application will be filtered by this query. +
+ @@ -2543,73 +2589,96 @@ Object { class="euiAccordion__padding--l" >
- +
+ You can't change the base query after the application is created. +
+
- -
-
- The default logs view in the application will be filtered by this query. + +
+ +
+
+ The default logs view in the application will be filtered by this query. +
+ @@ -10233,75 +10440,98 @@ Object { class="euiAccordion__padding--l" >
- +
+ You can't change the base query after the application is created. +
+
- -
-
- The default logs view in the application will be filtered by this query. + +
+ +
+
+ The default logs view in the application will be filtered by this query. +
+ @@ -11357,73 +11587,96 @@ Object { class="euiAccordion__padding--l" >
- +
+ You can't change the base query after the application is created. +
+
- -
-
- The default logs view in the application will be filtered by this query. + +
+ +
+
+ The default logs view in the application will be filtered by this query. +
+ @@ -17042,75 +17387,98 @@ Object { class="euiAccordion__padding--l" >
- +
+ You can't change the base query after the application is created. +
+
- -
-
- The default logs view in the application will be filtered by this query. + +
+ +
+
+ The default logs view in the application will be filtered by this query. +
+ diff --git a/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap b/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap index 717a8ef7c..c127de448 100644 --- a/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap +++ b/dashboards-observability/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap @@ -2,6 +2,7 @@ exports[`Log Config component renders empty log config 1`] = `
@@ -222,174 +227,236 @@ exports[`Log Config component renders empty log config 1`] = `
-
-
- - - -
-
- +
-
- + +
+ You can't change the base query after the application is created. +
+
+
+ +
+
+ +
+ +
+
+ + + +
- - -