forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial implementation for dataset dropdown Signed-off-by: Sean Li <[email protected]> * initial metadata commit Signed-off-by: Sean Li <[email protected]> * bug fixes Signed-off-by: Sean Li <[email protected]> * hiding datasource cluster selctor and other bug fixes Signed-off-by: Sean Li <[email protected]> * refactoring and fixing datasource selector button Signed-off-by: Sean Li <[email protected]> * fix breaking loop Signed-off-by: Sean Li <[email protected]> * last working commit Signed-off-by: Sean Li <[email protected]> * WIP indices Signed-off-by: Sean Li <[email protected]> * refactor to query editor Signed-off-by: Sean Li <[email protected]> * cleanup dataset dropdown Signed-off-by: Sean Li <[email protected]> * running linter Signed-off-by: Sean Li <[email protected]> * removing exports for deleted components Signed-off-by: Sean Li <[email protected]> * Changeset file for PR opensearch-project#7289 created/updated * running linter Signed-off-by: Sean Li <[email protected]> * removing connections bar component Signed-off-by: Sean Li <[email protected]> * remove unused property Signed-off-by: Sean Li <[email protected]> * use default search interceptor for get indices Signed-off-by: Sean Li <[email protected]> * removing unused file Signed-off-by: Sean Li <[email protected]> * adding onselect for dataset navigator Signed-off-by: Sean Li <[email protected]> * trying to make a commponetto call Signed-off-by: Kawika Avilla <[email protected]> * no clue if it works Signed-off-by: Kawika Avilla <[email protected]> * trying out changes Signed-off-by: Sean Li <[email protected]> * initial commit for external datasources work Signed-off-by: Sean Li <[email protected]> * caching recently used and external datasources Signed-off-by: Sean Li <[email protected]> * still porting over Signed-off-by: Kawika Avilla <[email protected]> * more ported over Signed-off-by: Kawika Avilla <[email protected]> * no linter complaints Signed-off-by: Kawika Avilla <[email protected]> * update to sidebar Signed-off-by: Kawika Avilla <[email protected]> * handle import errors Signed-off-by: Kawika Avilla <[email protected]> * rebased Signed-off-by: Kawika Avilla <[email protected]> * fix a messy merge for package.json Signed-off-by: Kawika Avilla <[email protected]> * so lnse for catching this Signed-off-by: Kawika Avilla <[email protected]> * fix nav Signed-off-by: Kawika Avilla <[email protected]> * no recalling Signed-off-by: Kawika Avilla <[email protected]> * number panels Signed-off-by: Kawika Avilla <[email protected]> * add wait Signed-off-by: Kawika Avilla <[email protected]> * index patterns worknig agan Signed-off-by: Kawika Avilla <[email protected]> * fix and clearing it df out Signed-off-by: Kawika Avilla <[email protected]> * disable hooks dependency Signed-off-by: Kawika Avilla <[email protected]> * fix the issue with import Signed-off-by: Kawika Avilla <[email protected]> * fixed passing the data source id Signed-off-by: Kawika Avilla <[email protected]> * loading spinner Signed-off-by: Kawika Avilla <[email protected]> * pading Signed-off-by: Kawika Avilla <[email protected]> * conditionally show s3 Signed-off-by: Kawika Avilla <[email protected]> * remove sql Signed-off-by: Kawika Avilla <[email protected]> * let it fail Signed-off-by: Kawika Avilla <[email protected]> * s3 datasources Signed-off-by: Kawika Avilla <[email protected]> * set data set for table Signed-off-by: Kawika Avilla <[email protected]> * pass it in the options Signed-off-by: Kawika Avilla <[email protected]> * run query different Signed-off-by: Kawika Avilla <[email protected]> * dont parse query string Signed-off-by: Kawika Avilla <[email protected]> * not capitalization Signed-off-by: Kawika Avilla <[email protected]> * Changeset file for PR opensearch-project#7368 created/updated * connections imported right Signed-off-by: Kawika Avilla <[email protected]> * handle select external Signed-off-by: Kawika Avilla <[email protected]> * initial implementation for url state Signed-off-by: Sean Li <[email protected]> * restore the dataset metadata stuff Signed-off-by: Kawika Avilla <[email protected]> * build dataset in state Signed-off-by: Kawika Avilla <[email protected]> * null pointer Signed-off-by: Kawika Avilla <[email protected]> --------- Signed-off-by: Sean Li <[email protected]> Signed-off-by: Kawika Avilla <[email protected]> Co-authored-by: Sean Li <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
faaa45c
commit be89380
Showing
70 changed files
with
3,279 additions
and
556 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
feat: | ||
- Add DataSet dropdown with index patterns and indices ([#7289](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7289)) |
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,2 @@ | ||
feat: | ||
- [Discover] Adds a dataset selector for Discover ([#7368](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/7368)) |
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export * from './create_extension'; | ||
export * from './types'; |
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,37 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/** @public **/ | ||
export enum SIMPLE_DATA_SOURCE_TYPES { | ||
DEFAULT = 'data-source', | ||
EXTERNAL = 'external-source', | ||
} | ||
|
||
/** @public **/ | ||
export enum SIMPLE_DATA_SET_TYPES { | ||
INDEX_PATTERN = 'index-pattern', | ||
TEMPORARY = 'temporary', | ||
TEMPORARY_ASYNC = 'temporary-async', | ||
} | ||
|
||
export interface SimpleObject { | ||
id?: string; | ||
title?: string; | ||
dataSourceRef?: SimpleDataSource; | ||
} | ||
|
||
export interface SimpleDataSource { | ||
id: string; | ||
name: string; | ||
indices?: SimpleObject[]; | ||
type: SIMPLE_DATA_SOURCE_TYPES; | ||
} | ||
|
||
export interface SimpleDataSet extends SimpleObject { | ||
fields?: any[]; | ||
timeFieldName?: string; | ||
timeFields?: any[]; | ||
type?: SIMPLE_DATA_SET_TYPES; | ||
} |
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
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
16 changes: 16 additions & 0 deletions
16
src/plugins/data/public/ui/dataset_navigator/_dataset_navigator.scss
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,16 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
.datasetNavigator { | ||
min-width: 350px; | ||
border-bottom: $euiBorderThin !important; | ||
} | ||
|
||
.dataSetNavigatorFormWrapper { | ||
padding: $euiSizeS; | ||
} | ||
|
||
.dataSetNavigator__loading { | ||
padding: $euiSizeS; | ||
} |
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 @@ | ||
@import "./dataset_navigator"; |
19 changes: 19 additions & 0 deletions
19
src/plugins/data/public/ui/dataset_navigator/create_dataset_navigator.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,19 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { HttpStart, SavedObjectsClientContract } from 'opensearch-dashboards/public'; | ||
import { DataSetNavigator, DataSetNavigatorProps } from './'; | ||
|
||
// Updated function signature to include additional dependencies | ||
export function createDataSetNavigator( | ||
savedObjectsClient: SavedObjectsClientContract, | ||
http: HttpStart | ||
) { | ||
// Return a function that takes props, omitting the dependencies from the props type | ||
return (props: Omit<DataSetNavigatorProps, 'savedObjectsClient' | 'http'>) => ( | ||
<DataSetNavigator {...props} savedObjectsClient={savedObjectsClient} http={http} /> | ||
); | ||
} |
Oops, something went wrong.