elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.99k stars 8.24k forks source link

Do not fetch full visualization SO when visiting listing page #118144

Open flash1293 opened 3 years ago

flash1293 commented 3 years ago

Similar to https://github.com/elastic/kibana/issues/118143

Currently the visualize library listing page is using the following URL to fetch visualizations for listing them: /api/saved_objects/_find?default_search_operator=AND&has_reference=%5B%5D&page=1&per_page=1000&search_fields=title%5E3&search_fields=description&type=lens&type=visualization

This returns all attributes of the saved objects which can sum up pretty quickly with complex visualizationslike vega.

Only fields required to display the listing page should be fetched. As the visualization "type" is part of the stringified JSON this is not a trivial change and requires migration, but it should be extracted to a separate field so only title and type can be requested.

elasticmachine commented 3 years ago

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

teresaalvarezsoler commented 2 months ago

Considering the Visualizations listing page is no longer available in the new navigation menu (live in serverless and soon to be implemented in hosted and stateful), should we close this issue @markov00 ?