Open flash1293 opened 3 years ago
Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)
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 ?
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.