[Log Explorer] Include title and icon in installed packages API #160935
Labels
Feature:LogsExplorer
Logs Explorer feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
📓 Summary
The API that paginates through the installed integrations currently only includes its
name
, but not the title or icons from the package manifest. Currently the dataset selector shows the name, which is not well formatted. In addition, the<PackageIcon>
component it contains has to perform inefficient per-package queries to fetch the icons. We want to improve on both problems by including these data right in the API response.✔️ Acceptance criteria
${EPM_ROOT}/packages/installed
includes the following fields:title: string
as specified in the integration's package manifesticons: PackageSpecIcon[]
as specified in the integration's package manifest<PackageIcon>
'sicons
list to avoid an API call.💡 Implementation hints
PackageSpecIcon
so the array can be passed to the<PackageIcon>
component in theicons
prop.epm-packages-assets
in thedata_utf8
field. They can be filtered for using aterms
query on theasset_path
fields assuming we know the package name and version. If there is a library helper in thefleet
plugin to find these asset saved objects we should try to use it.The text was updated successfully, but these errors were encountered: