Skip to content
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

[Search] Remove legacy ES client #55139

Closed
lukasolson opened this issue Jan 16, 2020 · 7 comments
Closed

[Search] Remove legacy ES client #55139

lukasolson opened this issue Jan 16, 2020 · 7 comments
Assignees
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Search Querying infrastructure in Kibana Feature:Timelion Timelion app and visualization Feature:Vega Vega visualizations loe:medium Medium Level of Effort refactoring

Comments

@lukasolson
Copy link
Member

lukasolson commented Jan 16, 2020

In #53766 we are exposing an instance of the Elasticsearch JavaScript client in the __LEGACY namespace for the purposes of continuing to support the usage of _msearch until bfetch is integrated into our search services (to avoid running into the browser connection limit).

This, and a couple of other places in Kibana are the only remaining usages of esClient, including the following:

  • index-pattern creation wizard
  • timelion?
  • vega?

These places should be migrated to use our data plugin search service. At that point we can remove this esClient service entirely, as well as abortableRequestHandler, since this is the last place it is used.

Related: #54147, #54821

@lukasolson lukasolson added Feature:Search Querying infrastructure in Kibana Feature:Timelion Timelion app and visualization Feature:Vega Vega visualizations Feature:Data Views Data Views code and UI - index patterns before 8.0 Team:AppArch labels Jan 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@lukasolson lukasolson added refactoring loe:medium Medium Level of Effort labels Mar 27, 2020
@lizozom lizozom changed the title [Search service] Remove legacy ES client [Search] Remove legacy ES client Jun 3, 2020
@mshustov
Copy link
Contributor

We need to remove elasticsearch-browser workaround from kbn-ui-shared-deps as well

@joshdover
Copy link
Contributor

@lukasolson Looking at the code, it appears that any plugin using the data.search.searchSource.* APIs are still dependent on this legacy client, not just timelion and vega. Is that correct? Are there any blockers to moving to bfetch?

@lukasolson
Copy link
Member Author

That's correct. I would just add that the searchSource APIs only use this legacy client when the courier:batchSearches advanced setting is turned on (and it's turned off by default). No blockers, just a matter of priority at this point.

@mshustov
Copy link
Contributor

It would be great to get rid of this several Mb eagerly loading dependency sooner than later.

@lukeelmers
Copy link
Member

#75943 has been merged which handles the removal of esClient and elasticsearch-browser.

The remaining usage of /elasticsearch/_msearch in index patterns hasn't been removed yet though -- this is tracked in #73993.

@lukeelmers
Copy link
Member

I am going to go ahead and close this since elasticsearch-browser has been removed, as well as usages of the /elasticsearch/_msearch route and the __LEGACY namespace in the data plugin's search service.

This is the only piece that has not been addressed, however I'm not sure if this was meant as an aside or as a requirement of this issue:

These places should be migrated to use our data plugin search service. At that point we can remove this esClient service entirely, as well as abortableRequestHandler, since this is the last place it is used.

@lukasolson feel free to re-open if you think we need to keep this around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Search Querying infrastructure in Kibana Feature:Timelion Timelion app and visualization Feature:Vega Vega visualizations loe:medium Medium Level of Effort refactoring
Projects
None yet
Development

No branches or pull requests

5 participants