-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Remove deprecated use of types in ES queries #32035
Description
We still have places in Kibana that are querying Elasticsearch using types, and this is logging deprecation warnings in ES. In addition to not wanting to have Kibana spamming deprecation logs for behaviors that users cannot control, the ES team is moving forward with their plans to reject types in future major versions, so we need to sort this out now.
The proposed first step is to add a configurable check (disabled by default) in our elasticsearch callWithRequest, callWithInternalUser, and search/console proxies that will throw an error when a response is received with deprecation warning headers that match the type error. We'll then set up a dedicated CI environment that runs with this configuration on. @jakelandis is going to provide the relevant warning messages. Then we'll track down each CI failure and remove the deprecated behavior one by one.
After that, a manual QA effort is likely necessary due to areas with low or missing test coverage, and they can use the same flags to help make identifying these requests easier.