Skip to content

Commit 119fde7

Browse files
github-actions[bot]aaarone90ps48
committed
Database selector in "Set Up Integration" page (#2380)
* Database selector in Integration install Signed-off-by: Aaron Alvarez <aaarone@amazon.com> * Database selector in Integration install Signed-off-by: Aaron Alvarez <aaarone@amazon.com> * Database selector in Integration install Signed-off-by: Aaron Alvarez <aaarone@amazon.com> * These changes are in response to PR comments Signed-off-by: Aaron Alvarez <aaarone@amazon.com> * Support custom logs correlation (#2375) * support custom logs correlation Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * add support for custom field mappings in logs Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * update explorer fields Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * add support for custom timestamp field Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> --------- Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> Signed-off-by: Aaron Alvarez <aaarone@amazon.com> * These changes are in response to latest PR comments and suggestions made by Simeon Signed-off-by: Aaron Alvarez <aaarone@amazon.com> --------- Signed-off-by: Aaron Alvarez <aaarone@amazon.com> Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> Co-authored-by: Aaron Alvarez <aaarone@amazon.com> Co-authored-by: Shenoy Pratik <sgguruda@amazon.com> (cherry picked from commit 588c8d4) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 38bb6c7 commit 119fde7

File tree

4 files changed

+378
-76
lines changed

4 files changed

+378
-76
lines changed

public/components/integrations/components/__tests__/__snapshots__/setup_integration.test.tsx.snap

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] =
3838
"connectionLocation": "",
3939
"connectionTableName": "sample",
4040
"connectionType": "index",
41+
"databaseName": "default",
4142
"displayName": "sample Integration",
4243
"enabledWorkflows": Array [],
4344
}
@@ -114,6 +115,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] =
114115
"connectionLocation": "",
115116
"connectionTableName": "sample",
116117
"connectionType": "index",
118+
"databaseName": "default",
117119
"displayName": "sample Integration",
118120
"enabledWorkflows": Array [],
119121
}
@@ -262,6 +264,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] =
262264
"connectionLocation": "",
263265
"connectionTableName": "sample",
264266
"connectionType": "index",
267+
"databaseName": "default",
265268
"displayName": "sample Integration",
266269
"enabledWorkflows": Array [],
267270
}
@@ -943,6 +946,7 @@ exports[`Integration Setup Page Renders integration setup page as expected 1`] =
943946
"connectionLocation": "",
944947
"connectionTableName": "sample",
945948
"connectionType": "index",
949+
"databaseName": "default",
946950
"displayName": "sample Integration",
947951
"enabledWorkflows": Array [],
948952
}

public/components/integrations/components/__tests__/__snapshots__/setup_integration_inputs.test.tsx.snap

+97
Original file line numberDiff line numberDiff line change
@@ -2120,6 +2120,103 @@ exports[`Integration Setup Inputs Renders the query inputs 1`] = `
21202120
</div>
21212121
</div>
21222122
</EuiCompressedFormRow>
2123+
<EuiCompressedFormRow
2124+
describedByIds={Array []}
2125+
display="rowCompressed"
2126+
fullWidth={false}
2127+
hasChildLabel={true}
2128+
hasEmptyLabelSpace={false}
2129+
helpText="Enter the name of the database to store your data. The 'default' database will be used if no input is provided."
2130+
label="Database Name"
2131+
labelType="label"
2132+
>
2133+
<div
2134+
className="euiFormRow euiFormRow--compressed"
2135+
id="random_html_id-row"
2136+
>
2137+
<div
2138+
className="euiFormRow__labelWrapper"
2139+
>
2140+
<EuiFormLabel
2141+
className="euiFormRow__label"
2142+
htmlFor="random_html_id"
2143+
isFocused={false}
2144+
type="label"
2145+
>
2146+
<label
2147+
className="euiFormLabel euiFormRow__label"
2148+
htmlFor="random_html_id"
2149+
>
2150+
Database Name
2151+
</label>
2152+
</EuiFormLabel>
2153+
</div>
2154+
<div
2155+
className="euiFormRow__fieldWrapper"
2156+
>
2157+
<EuiCompressedFieldText
2158+
aria-describedby="random_html_id-help-0"
2159+
id="random_html_id"
2160+
onBlur={[Function]}
2161+
onChange={[Function]}
2162+
onFocus={[Function]}
2163+
placeholder="default"
2164+
>
2165+
<EuiFieldText
2166+
aria-describedby="random_html_id-help-0"
2167+
compressed={true}
2168+
id="random_html_id"
2169+
onBlur={[Function]}
2170+
onChange={[Function]}
2171+
onFocus={[Function]}
2172+
placeholder="default"
2173+
>
2174+
<EuiFormControlLayout
2175+
compressed={true}
2176+
fullWidth={false}
2177+
inputId="random_html_id"
2178+
>
2179+
<div
2180+
className="euiFormControlLayout euiFormControlLayout--compressed"
2181+
>
2182+
<div
2183+
className="euiFormControlLayout__childrenWrapper"
2184+
>
2185+
<EuiValidatableControl>
2186+
<input
2187+
aria-describedby="random_html_id-help-0"
2188+
className="euiFieldText euiFieldText--compressed"
2189+
id="random_html_id"
2190+
onBlur={[Function]}
2191+
onChange={[Function]}
2192+
onFocus={[Function]}
2193+
placeholder="default"
2194+
type="text"
2195+
/>
2196+
</EuiValidatableControl>
2197+
<EuiFormControlLayoutIcons
2198+
compressed={true}
2199+
/>
2200+
</div>
2201+
</div>
2202+
</EuiFormControlLayout>
2203+
</EuiFieldText>
2204+
</EuiCompressedFieldText>
2205+
<EuiFormHelpText
2206+
className="euiFormRow__text"
2207+
id="random_html_id-help-0"
2208+
key="Enter the name of the database to store your data. The 'default' database will be used if no input is provided."
2209+
>
2210+
<div
2211+
className="euiFormHelpText euiFormRow__text"
2212+
id="random_html_id-help-0"
2213+
>
2214+
Enter the name of the database to store your data. The 'default' database will be used if no input is provided.
2215+
</div>
2216+
</EuiFormHelpText>
2217+
</div>
2218+
</div>
2219+
</EuiCompressedFormRow>
21232220
<EuiCompressedFormRow
21242221
describedByIds={Array []}
21252222
display="rowCompressed"

0 commit comments

Comments
 (0)