-
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
[@kbn/securitysolution-es-utils] remove transport API in favour of typed public API #113717
Conversation
}) | ||
).body; | ||
// @ts-expect-error policy_id is required by mistake. fixed in the v8.0 | ||
(await esClient.ilm.deleteLifecycle({ policy })).body |
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.
💛 Build succeeded, but was flaky
Test FailuresKibana Pipeline / general / Performance Tests.x-pack/test/performance/tests/reporting_dashboard·ts.performance reporting dashbaord downloaded PDF has OK statusStandard Out
Stack Trace
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
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,
- Looked it over carefully to ensure that the PR removes the transport.
Very interesting and good PR. Must be tricky to help other teams like this, so much appreciated 👍
@@ -6,7 +6,7 @@ | |||
* Side Public License, v 1. | |||
*/ | |||
|
|||
import { ElasticsearchClient } from '../elasticsearch_client'; | |||
import type { ElasticsearchClient } from '../elasticsearch_client'; |
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.
👍 Thanks for the additional import type
here.
…ped public API (elastic#113717) * remove transport API in favour of typed public API * put elasticsearch_client back * fix create index call * fix setpolicy * fix unit tests in SecuritySolution
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
unblocks #108387
Prefer ES client API over
transport
API. It removes dependency on the transport protocol implementation and provides type safety.