-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Consolidate TimeRange, Query and Filter types. #39074
Consolidate TimeRange, Query and Filter types. #39074
Conversation
Pinging @elastic/kibana-app-arch |
…ng from embeddables.
@@ -30,7 +28,7 @@ describe('FullTimeRangeSelector', () => { | |||
}; | |||
|
|||
const query: Query = { | |||
language: QueryLanguageType.KUERY, | |||
language: 'kuery', |
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.
Hey Stacey, can you explain why this is no longer available as an enum
?
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.
ideally it would be, it's just that the type in the "source of truth" package always used a string, while the embeddable's one used an enum. A follow up PR could be be converting the source of truth type to use an enum. I thought about adding it in this PR... but these PRs really quickly grow in scope so tried to stick with one goal: stop importing/exporting these from the embeddables plugin.
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.
No comments other than this one :)
9c39a9b
to
11d2118
Compare
💔 Build Failed |
💚 Build Succeeded |
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.
LGTM
@@ -30,7 +28,7 @@ describe('FullTimeRangeSelector', () => { | |||
}; | |||
|
|||
const query: Query = { | |||
language: QueryLanguageType.KUERY, | |||
language: 'kuery', |
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.
No comments other than this one :)
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.
LGTM
…ng from embeddables. (elastic#39074)
…ng from embeddables. (elastic#39074)
…ng from embeddables. (elastic#39074)
…ng from embeddables. (elastic#39074)
Stop exporting/importing from embedables.