-
Notifications
You must be signed in to change notification settings - Fork 894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discover Flint datasource selector implementation #6833
Discover Flint datasource selector implementation #6833
Conversation
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/discover-next #6833 +/- ##
=========================================================
- Coverage 67.05% 67.04% -0.01%
=========================================================
Files 3451 3451
Lines 68216 68208 -8
Branches 11140 11139 -1
=========================================================
- Hits 45740 45731 -9
- Misses 19856 19857 +1
Partials 2620 2620
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
src/plugins/discover/public/application/helpers/get_data_source_fetch_strategy.ts
Outdated
Show resolved
Hide resolved
src/plugins/discover/public/application/helpers/get_data_source_fetch_strategy.ts
Outdated
Show resolved
Hide resolved
ab40e0e
to
a155fe5
Compare
src/plugins/data/public/data_sources/datasource_selector/types.ts
Outdated
Show resolved
Hide resolved
@@ -51,6 +51,7 @@ export interface IDataSourceSettings<T extends IDataSourceMetadata = IDataSource | |||
id: string; | |||
type: string; | |||
name: string; | |||
connectionType: 'os' | 'flint'; | |||
metadata: T; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we know what is apart of the metadata field?
Hi @paulstn , is this PR targeting 2.15 or 2.16? |
8bb3b5d
to
016e0f2
Compare
2.15 |
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
…ch params Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
e095c56
to
09e1b9e
Compare
@@ -72,7 +72,7 @@ export const useSearch = (services: DiscoverViewServices) => { | |||
const [savedSearch, setSavedSearch] = useState<SavedSearch | undefined>(undefined); | |||
const { savedSearch: savedSearchId, sort, interval } = useSelector((state) => state.discover); | |||
const { data, filterManager, getSavedSearchById, core, toastNotifications, chrome } = services; | |||
const indexPattern = useIndexPattern(services); | |||
const { indexPattern, dataSource } = useIndexPattern(services); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kavilla I was using the index pattern hook to pass along the data source information as a temporary solution, should I create another hook for datasource or generalize this index pattern hook?
@paulstn is the PR ready for review? |
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
Signed-off-by: Paul Sebastian <paulstn@amazon.com>
export const S3_GLUE_DATA_SOURCE_DISPLAY_NAME = 'Amazon S3'; | ||
export const S3_GLUE_DATA_SOURCE_TYPE = 's3glue'; | ||
export const DEFAULT_DATA_SOURCE_TYPE = 'DEFAULT_INDEX_PATTERNS'; | ||
export const DEFAULT_DATA_SOURCE_TYPE = 'default'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this have functional purposes outside of redirecting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging as is! working for sean's stuff. ty!
7eeecf9
into
opensearch-project:feature/discover-next
SearchBar extensions depend on the currently selected dataSource, which depends on opensearch-project#6833 to be ported to main Signed-off-by: Joshua Li <joshuali925@gmail.com>
Description
Issues Resolved
Screenshot
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration