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.
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]>
- Loading branch information
1 parent
c0d03d2
commit ca02056
Showing
31 changed files
with
383 additions
and
446 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
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
33 changes: 33 additions & 0 deletions
33
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,33 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { SavedObjectsClientContract } from 'src/core/public'; | ||
import { IndexPatternsContract } from 'src/plugins/data/public'; | ||
import { DataSetNavigator, DataSetNavigatorProps } from './'; | ||
import { Settings } from '../settings'; | ||
|
||
// Updated function signature to include additional dependencies | ||
export function createDataSetNavigator( | ||
settings: Settings, | ||
savedObjectsClient: SavedObjectsClientContract, | ||
indexPatternsService: IndexPatternsContract, | ||
search: any, | ||
onDataSetSelected: any, | ||
) { | ||
// Return a function that takes props, omitting the dependencies from the props type | ||
return ( | ||
props: Omit<DataSetNavigatorProps, 'savedObjectsClient' | 'indexPatternsService' | 'search'> | ||
) => ( | ||
<DataSetNavigator | ||
{...props} | ||
settings={settings} | ||
savedObjectsClient={savedObjectsClient} | ||
indexPatternsService={indexPatternsService} | ||
search={search} | ||
onDataSetSelected={onDataSetSelected} | ||
/> | ||
); | ||
} |
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
Oops, something went wrong.