From ffd495157edea7b40c3a79af34a6387258a524a0 Mon Sep 17 00:00:00 2001 From: Shubh Sahu Date: Mon, 2 Sep 2024 14:42:11 +0530 Subject: [PATCH] rebaseing Signed-off-by: Shubh Sahu --- .../CreateComposableTemplate.test.tsx.snap | 292 +----------------- .../TemplateDetail.test.tsx.snap | 164 +++++++--- .../ConfigurePolicy.test.tsx.snap | 16 +- .../__snapshots__/DefinePolicy.test.tsx.snap | 16 +- .../__snapshots__/CreatePolicy.test.tsx.snap | 32 +- .../PolicySettings.test.tsx.snap | 16 +- .../__snapshots__/PolicyInfo.test.tsx.snap | 16 +- .../States/__snapshots__/States.test.tsx.snap | 29 +- 8 files changed, 169 insertions(+), 412 deletions(-) diff --git a/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap b/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap index 37a25e900..584a12512 100644 --- a/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap +++ b/public/pages/CreateComposableTemplate/containers/CreateComposableTemplate/__snapshots__/CreateComposableTemplate.test.tsx.snap @@ -10,87 +10,7 @@ exports[` spec it goes to templates page when click class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive" >
-

- good_template -

-
- -
- - -
- -
-
-
-
-
-

- Define component template - - - - -

-
-
-
-
-
-
spec it goes to templates page when click id="some_html_id-help-0" >
- Index alias + Define how documents and their fields are stored and indexed. + + + Learn more + EuiIconMock + + (opens in a new tab or window) + +
@@ -503,199 +438,6 @@ exports[` spec it goes to templates page when click />
-
-
-
-
-
-

- Index settings - - - - -

-
-
-
-
-
-
- -
-
- - - Use configuration - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

- Index mapping -

-
-
-
-
-
- Define how documents and their fields are stored and indexed. - - - Learn more - EuiIconMock - - (opens in a new tab or window) - - -
-
-
-
-
-
-
-
- -
-
- - - Use configuration - -
-
-
-
-
-
-
-
-
-
`; diff --git a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap index e1530927c..5f6b8944f 100644 --- a/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap +++ b/public/pages/CreateComposableTemplate/containers/TemplateDetail/__snapshots__/TemplateDetail.test.tsx.snap @@ -7,16 +7,85 @@ exports[` spec render component 1`] = ` class="euiFlexGroup euiFlexGroup--gutterLarge euiFlexGroup--alignItemsCenter euiFlexGroup--directionRow euiFlexGroup--responsive" >
-

- Create component template -

+
+

+ Create component template +

+
+
+
+
+
+ Component templates are reusable building blocks for composing index or data stream templates. You can define component templates with common index configurations and associate them to an index template. + + +
+
+
+
+
+
+
+
+
+

+ Define component template +

+
+
+
+
+ +
@@ -25,37 +94,48 @@ exports[` spec render component 1`] = ` style="padding-top: 0px; padding-bottom: 4px;" >
- Must be in lowercase letters. Cannot begin with underscores. Spaces, commas, and characters *, # are not allowed. + Name cannot be changed after the component template is created.
+ +
+
+ +
+
+
-

- Define component template - - - - -

+
+
+ Must be in lowercase letters. Cannot begin with underscores. Spaces, commas, and characters *, # are not allowed. +
+
-
-
-
+
spec render component 1`] = ` id="some_html_id-help-0" >
- Index alias + Define how documents and their fields are stored and indexed. + + + Learn more + EuiIconMock + + (opens in a new tab or window) + +
@@ -389,23 +484,6 @@ exports[` spec render component 1`] = `
-
-
-

- Index settings - - - - -

-
-
diff --git a/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap b/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap index 03eb019d0..c791cf2db 100644 --- a/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap +++ b/public/pages/CreatePolicy/components/ConfigurePolicy/__snapshots__/ConfigurePolicy.test.tsx.snap @@ -10,19 +10,9 @@ exports[` spec renders the component 1`] = `
-
-

- Name policy - - - - -

-
+

+ Name policy +


spec renders the component 1`] = `
-
-

- Define policy - - - - -

-
+

+ Define policy +

spec renders the create component 1`] = `
-
-

- Name policy - - - - -

-
+

+ Name policy +


spec renders the edit component 1`] = `
-
-

- Name policy - - - - -

-
+

+ Name policy +


spec renders the component 1`] = `
-
-

- Policy settings - - - - -

-
+

+ Policy settings +


spec renders the component 1`] = `
-
-

- Policy info - - - - -

-
+

+ Policy info +


spec renders the component 1`] = `
-
-

- States (2) - - - - -

-
-
+ States (2) + +
+
+
+
+

You can think of policies as state machines. "Actions" are the operations ISM performs when an index is in a certain state.