-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[Es query] Move to package #103530
[Es query] Move to package #103530
Conversation
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.
Approving to clear the codeowners for Core team (which is only a newline that could be removed). I haven't reviewed the code in depth, but the new package looks ✅ for our consumption of the library in Saved Objects to unblock the Bazel project. Thanks for doing this work, @lizozom!
@@ -33,7 +33,6 @@ import { errors as EsErrors } from '@elastic/elasticsearch'; | |||
const { nodeTypes } = esKuery; | |||
|
|||
jest.mock('./search_dsl/search_dsl', () => ({ getSearchDsl: jest.fn() })); | |||
|
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.
nit: we could probably put this back, but doesn't really matter.
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.
Checked only Kibana APp codeowner code. LGTM
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.
Code changes LGTM
May the forces of bootstrapping helps us 🙏🏻 😉
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
May the forces of bootstrapping helps us 🙏🏻 😉 Co-authored-by: Liza Katz <[email protected]>
💔 Build Failed
Failed CI Steps
Test FailuresKibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/dashboard_mode/dashboard_view_mode·js.dashboard mode Dashboard View Mode Dashboard viewer "before all" hook: Create dashboard only mode user for "shows only the dashboard app link"Standard Out
Stack Trace
Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/security/users·js.security app users should show the default rolesStandard Out
Stack Trace
Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/security/users·js.security app users should show the default rolesStandard Out
Stack Trace
and 4 more failures, only showing the first 3. Metrics [docs]Module Count
Public APIs missing comments
Any counts in public APIs
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: cc @lizozom |
Summary
Resolves #51659
Resolves #17284
Partially addresses #84788
Need for #55485
Overview
This PR turned out rather big (even after multiple preliminary PRs).
These are the changes included:
es_query
code to a new packagetitle
toIndexPatternBase
public
andserver
and mark them asdepreceated
common
or using deep importsbazel
build for package (Thanks @mistic), including using a newpeggy
build.kuery/grammar
in jest testsPlugin API changes
Moving some key types and functions related to query generation to a package.
The following types and functions should be imported from
@kbn/es-query
. Importing them from thedata
plugin is now deprecated and support will be removed inv8.0
:data
plugin)IndexPatternBase
IndexPatternFieldBase
IFieldSubType
RangeFilter
RangeFilterMeta
RangeFilterParams
ExistsFilter
PhrasesFilter
PhraseFilter
CustomFilter
MatchAllFilter
isExistsFilter
isFilterPinned
isMatchAllFilter
isMissingFilter
isPhraseFilter
isPhrasesFilter
isQueryStringFilter
isRangeFilter
buildEmptyFilter
buildExistsFilter
buildPhraseFilter
buildPhrasesFilter
buildQueryFilter
buildRangeFilter
getPhraseFilterField
getPhraseFilterValue
toggleFilterNegated
disableFilter
KueryNode
fromKueryExpression
toElasticsearchQuery
nodeTypes
buildEsQuery
buildQueryFromFilters
luceneStringToDsl
decorateQuery
EsQueryConfig
Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers