-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Explicitly require a OriginSettingClient in ML results iterators #50802
Explicitly require a OriginSettingClient in ML results iterators #50802
Conversation
Pinging @elastic/ml-core (:ml) |
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
Please can you also backport this to 7.x rather than just changing master, as it will avoid future backporting pain to avoid unnecessary differences between master and 7.x |
The unit tests proved quite problematic as |
In classes where the client is used directly rather than executeAsyncWithOrigin and remove calls to deprecated ClientHelper.clientWithOrigin() method
276badd
to
d12fdb6
Compare
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
…stic#50802) In classes where the client is used directly rather than through a call to executeAsyncWithOrigin explicitly require the client to be OriginSettingClient rather than using the Client interface. Also remove calls to deprecated ClientHelper.clientWithOrigin() method.
…stic#50802) In classes where the client is used directly rather than through a call to executeAsyncWithOrigin explicitly require the client to be OriginSettingClient rather than using the Client interface. Also remove calls to deprecated ClientHelper.clientWithOrigin() method.
In classes where the client is used directly rather than through a call to
executeAsyncWithOrigin
explicitly require the client to beOriginSettingClient
rather than use theclient
interface. Basically that meansBatchedDocumentsIterator
and the classes that use it.Also remove calls to deprecated ClientHelper.clientWithOrigin() method.