-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* init use observability deps Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * update side tree view Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * update tests Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * update release notes Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * removes console.log Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * allow refresh only after first load Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * update snapshots Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * revert version to 3.0 Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * on umount stop loading Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> --------- Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> (cherry picked from commit d168db7)
- Loading branch information
Showing
18 changed files
with
3,850 additions
and
7,720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,4 +50,4 @@ | |
"semver": "^7.5.2", | ||
"@cypress/request": "^3.0.0" | ||
} | ||
} | ||
} |
10,600 changes: 2,925 additions & 7,675 deletions
10,600
public/components/Main/__snapshots__/main.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
public/components/SQLPage/sql_catalog_tree/catalog_tree.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { EuiComboBoxOptionOption } from '@elastic/eui'; | ||
import React from 'react'; | ||
import { OSTree } from './os_tree'; | ||
import { S3Tree } from './s3_tree'; | ||
|
||
interface CatalogTreeProps { | ||
selectedItems: EuiComboBoxOptionOption[]; | ||
updateSQLQueries: (query: string) => void; | ||
refreshTree: boolean; | ||
} | ||
|
||
export const CatalogTree = ({ selectedItems, updateSQLQueries, refreshTree }: CatalogTreeProps) => { | ||
return ( | ||
<> | ||
{selectedItems !== undefined && selectedItems[0].label === 'OpenSearch' ? ( | ||
<OSTree | ||
selectedItems={selectedItems} | ||
updateSQLQueries={updateSQLQueries} | ||
refreshTree={refreshTree} | ||
/> | ||
) : ( | ||
<S3Tree | ||
dataSource={selectedItems[0].label} | ||
updateSQLQueries={updateSQLQueries} | ||
refreshTree={refreshTree} | ||
/> | ||
)} | ||
</> | ||
); | ||
}; |
Oops, something went wrong.