use KibanaClient interface instead of Client for new client interface#72388
use KibanaClient interface instead of Client for new client interface#72388pgayvallet merged 7 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/kibana-platform (Team:Platform) |
mshustov
left a comment
There was a problem hiding this comment.
Shouldn't transport.request return TransportRequestPromise?
I would say yes, but I'll let @delvedor answer this one. |
delvedor
left a comment
There was a problem hiding this comment.
Yep, that's a bug. It will be fixed by elastic/elasticsearch-js#1263.
Out of curiosity, why are you omitting the helpers in the exported client?
Hum, that looks like a mistake on my side. Gonna fix that |
delvedor
left a comment
There was a problem hiding this comment.
You should also update the transport.request definition to return TransportRequestPromise :)
https://github.com/pgayvallet/kibana/blob/7f12fb915805f90404413aa63cb3f0b231cff3c3/src/core/server/elasticsearch/client/types.ts#L40
|
Need #72448 to be merged first to change the |
|
retest |
💚 Build SucceededBuild metrics
History
To update your PR or re-run it, just comment with: |
…elastic#72388) * use KibanaClient interface instead of Client * add back helpers to ElasticsearchClient interface * use TransportRequestPromise for transport.request * update generated doc
* master: (28 commits) allow some env settings for ingest manager (elastic#72544) Add inspector for VEGA (elastic#70941) chore(NA): fix grunt task for test:coverage (elastic#72539) Archive e2e test results in ES (elastic#72575) preserve 401 errors from new es client (elastic#71248) [SIEM][Detections] Updates text for severity and risk_score overrides (elastic#72244) fixing error occurences tooltip (elastic#72425) use KibanaClient interface instead of Client for new client interface (elastic#72388) [APM] Handle ML errors (elastic#72316) [Discover] Improve histogram tests (elastic#72235) [ftr/webdriver] retry on all errors, use Rx so that timers are canceled (elastic#72540) [pre-req] Move .storybook to storybook; standardize files (elastic#72384) [Security_Solution][Resolver][Bug]: Restore breadcrumb background (elastic#72538) [ML] Fix annotation detector linking & delayed_data(0) (elastic#72468) [Security Solution][Exceptions] - Make esTypes and subType available to index patterns (elastic#72336) [SIEM] Uses faster wait from testing-library and removes duplicate older wait idiom (elastic#72509) Fix long combo box items breaking out of flex item width (elastic#72512) [pipeline/commitStatus] update commit status in baseline-capture job (elastic#72366) [Security Solution][Resolver] Update the resolver element ref on scroll events if the position of the element has changed within the page (elastic#72461) [Maps] auto-fit to data bounds (elastic#72129) ...
…feature-privileges * alerting/consumer-based-rbac: (30 commits) removed uneeded tests expclude security wrapper in SO client passed to ActionsClient allow some env settings for ingest manager (elastic#72544) Add inspector for VEGA (elastic#70941) chore(NA): fix grunt task for test:coverage (elastic#72539) Archive e2e test results in ES (elastic#72575) preserve 401 errors from new es client (elastic#71248) [SIEM][Detections] Updates text for severity and risk_score overrides (elastic#72244) fixing error occurences tooltip (elastic#72425) use KibanaClient interface instead of Client for new client interface (elastic#72388) [APM] Handle ML errors (elastic#72316) [Discover] Improve histogram tests (elastic#72235) [ftr/webdriver] retry on all errors, use Rx so that timers are canceled (elastic#72540) [pre-req] Move .storybook to storybook; standardize files (elastic#72384) [Security_Solution][Resolver][Bug]: Restore breadcrumb background (elastic#72538) [ML] Fix annotation detector linking & delayed_data(0) (elastic#72468) [Security Solution][Exceptions] - Make esTypes and subType available to index patterns (elastic#72336) [SIEM] Uses faster wait from testing-library and removes duplicate older wait idiom (elastic#72509) Fix long combo box items breaking out of flex item width (elastic#72512) [pipeline/commitStatus] update commit status in baseline-capture job (elastic#72366) ...
Summary
Part of #35508
Use new
KibanaClientinterface as base forElasticsearchClientChecklist