-
Notifications
You must be signed in to change notification settings - Fork 0
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
Enhancement/search bar flint #3
base: main
Are you sure you want to change the base?
Enhancement/search bar flint #3
Conversation
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Eric <[email protected]>
import { QueryManager } from '../../../../../common/query_manager'; | ||
|
||
export type OpenSearchDashboardsServices = Partial<CoreStart>; | ||
export type DashboardsObservabilityServices = OpenSearchDashboardsServices & { |
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.
DashboardsObservabilityServices
should contain CoreStart
. would any services in core start be optional since it is defined as Partial<CoreStart>
?
export interface ObservabilityDashboardsReactContextValue< | ||
Services extends OpenSearchDashboardsServices | ||
> { |
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.
why a separate generic Service
instead of using DashboardsObservabilityServices
defined above?
const oldValue = useDashboardsObservability(); | ||
const { value: mergedValue } = useMemo( | ||
() => | ||
createDashboardsObservabilityContext({ |
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.
Services
is a generic type that extends OpenSearchDashboardsServices
, how does it ensure that Observability specific services like pplService
are passed in?
Description
[Describe what this change achieves]
Issues Resolved
[List any issues this PR will resolve]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.