-
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
Deprecate es API exposed from setup contract #67596
Deprecate es API exposed from setup contract #67596
Conversation
Pinging @elastic/kibana-platform (Team:Platform) |
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.
security changes 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.
Alerting 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.
ML edit 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.
Unfortunately, we cannot remove all usages right now.
Where are we tracking the remaining usages? Maybe we could consolidate the list in #55397 (comment) to make this a bit easier to scan.
readonly dataClient: IClusterClient; | ||
/** | ||
* @deprecated | ||
* Use {@link ElasticsearchServiceStart.legacy | ElasticsearchServiceStart.legacy.client} instead. |
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: I don't think this line applies anymore?
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.
We can remove the comment when the new elasticsearch client merged. Till that moment, we'd prefer plugins to use start contract. Wouldn't we?
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.
Ah I misread this. I thought it was copied over from dataClient. 👍
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.
Changes to Remote Clusters mocks 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.
LGTM for stack monitoring
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.
Telemetry changes LGTM!
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
waiting for #67818 to backport the changes |
👋 I'm working on debugging what happened to our tests in this backport, I'll chime in once things are green/merged |
* move elasticsearch client under legacy namespace * update mocks and tests * update platform code * update legacy code * update plugins using elasticsearch setup API * update request handler context * update docs * rename remaining places * address comments * fix merge conflict error
* move elasticsearch client under legacy namespace * update mocks and tests * update platform code * update legacy code * update plugins using elasticsearch setup API * update request handler context * update docs * rename remaining places * address comments * fix merge conflict error
Summary
Rename remaining elasticsearch API exposed from setup contract. Unfortunately, we cannot remove all usages right now. Closes #55397
Also fixes #49870 removing
adminClient
&dataClient
to inline withstart
contract.Checklist
Delete any items that are not applicable to this PR.
For maintainers
Dev Docs
Elasticsearch API exposed from setup contract is not available and will be deleted without any notice. Please, switch to core start API instead.