Skip to content

Commit

Permalink
update tests and snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
  • Loading branch information
ps48 committed Mar 9, 2024
1 parent cea2e85 commit d2c8fdf
Show file tree
Hide file tree
Showing 14 changed files with 283 additions and 282 deletions.
3 changes: 3 additions & 0 deletions common/constants/data_sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ export const ACCELERATION_INDEX_TYPES = [
{ label: 'Materialized View', value: 'materialized' },
];

export const ACC_INDEX_TYPE_DOCUMENTATION_URL =
'https://github.com/opensearch-project/opensearch-spark/blob/main/docs/index.md';

export const ACCELERATION_INDEX_NAME_INFO = `All OpenSearch acceleration indices have a naming format of pattern: \`prefix_<index name>_suffix\`. They share a common prefix structure, which is \`flint_<data source name>_<database name>_<table name>_\`. Additionally, they may have a suffix that varies based on the index type.
##### Skipping Index
- For 'Skipping' indices, a fixed index name 'skipping' is used, and this name cannot be modified by the user. The suffix added to this type is \`_index\`.
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ exports[`Acceleration header renders acceleration flyout header 1`] = `
<a
className="euiLink euiLink--primary"
href="https://opensearch.org/docs/latest/dashboards/management/accelerate-external-data/"
href="https://opensearch.org/docs/latest/data-acceleration/index"
rel="noopener noreferrer"
target="_blank"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ Array [
/>,
<div
className="euiFormRow"
id="some_html_id-row"
id="random_html_id-row"
>
<div
className="euiFormRow__labelWrapper"
>
<label
aria-invalid={false}
className="euiFormLabel euiFormRow__label"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
Index name
</label>
Expand All @@ -49,7 +49,7 @@ Array [
>
<label
className="euiFormLabel euiFormControlLayout__prepend"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
flint_{Datasource Name}_{Database Name}_{Table Name}_
</label>
Expand Down Expand Up @@ -83,11 +83,11 @@ Array [
className="euiFormControlLayout__childrenWrapper"
>
<input
aria-describedby="some_html_id-help-0"
aria-describedby="random_html_id-help-0"
aria-label="Enter Index Name"
className="euiFieldText euiFieldText--inGroup"
disabled={false}
id="some_html_id"
id="random_html_id"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
Expand All @@ -98,14 +98,14 @@ Array [
</div>
<label
className="euiFormLabel euiFormControlLayout__append"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
_index
</label>
</div>
<div
className="euiFormHelpText euiFormRow__text"
id="some_html_id-help-0"
id="random_html_id-help-0"
>
Must be in lowercase letters. Cannot begin with underscores. Spaces, commas, and characters -, :, ", *, +, /, \\, |, ?, #, &gt;, or &lt; are not allowed. Prefix and suffix are added to the name of generated OpenSearch index.
</div>
Expand All @@ -130,15 +130,15 @@ Array [
/>,
<div
className="euiFormRow"
id="some_html_id-row"
id="random_html_id-row"
>
<div
className="euiFormRow__labelWrapper"
>
<label
aria-invalid={false}
className="euiFormLabel euiFormRow__label"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
Index name
</label>
Expand All @@ -164,7 +164,7 @@ Array [
>
<label
className="euiFormLabel euiFormControlLayout__prepend"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
flint_{Datasource Name}_{Database Name}_{Table Name}_
</label>
Expand Down Expand Up @@ -198,11 +198,11 @@ Array [
className="euiFormControlLayout__childrenWrapper"
>
<input
aria-describedby="some_html_id-help-0"
aria-describedby="random_html_id-help-0"
aria-label="Enter Index Name"
className="euiFieldText euiFieldText--inGroup"
disabled={true}
id="some_html_id"
id="random_html_id"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
Expand All @@ -213,14 +213,14 @@ Array [
</div>
<label
className="euiFormLabel euiFormControlLayout__append"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
_index
</label>
</div>
<div
className="euiFormHelpText euiFormRow__text"
id="some_html_id-help-0"
id="random_html_id-help-0"
>
Must be in lowercase letters. Cannot begin with underscores. Spaces, commas, and characters -, :, ", *, +, /, \\, |, ?, #, &gt;, or &lt; are not allowed. Prefix and suffix are added to the name of generated OpenSearch index.
</div>
Expand All @@ -245,15 +245,15 @@ Array [
/>,
<div
className="euiFormRow"
id="some_html_id-row"
id="random_html_id-row"
>
<div
className="euiFormRow__labelWrapper"
>
<label
aria-invalid={false}
className="euiFormLabel euiFormRow__label"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
Index name
</label>
Expand All @@ -279,7 +279,7 @@ Array [
>
<label
className="euiFormLabel euiFormControlLayout__prepend"
htmlFor="some_html_id"
htmlFor="random_html_id"
>
flint_{Datasource Name}_{Database Name}_
</label>
Expand Down Expand Up @@ -313,11 +313,11 @@ Array [
className="euiFormControlLayout__childrenWrapper"
>
<input
aria-describedby="some_html_id-help-0"
aria-describedby="random_html_id-help-0"
aria-label="Enter Index Name"
className="euiFieldText euiFieldText--inGroup"
disabled={false}
id="some_html_id"
id="random_html_id"
onBlur={[Function]}
onChange={[Function]}
onFocus={[Function]}
Expand All @@ -329,7 +329,7 @@ Array [
</div>
<div
className="euiFormHelpText euiFormRow__text"
id="some_html_id-help-0"
id="random_html_id-help-0"
>
Must be in lowercase letters. Cannot begin with underscores. Spaces, commas, and characters -, :, ", *, +, /, \\, |, ?, #, &gt;, or &lt; are not allowed. Prefix and suffix are added to the name of generated OpenSearch index.
</div>
Expand Down
Loading

0 comments on commit d2c8fdf

Please sign in to comment.