[Infra] Processes tab shows toast with a 500 error when performing a full page refresh #187385
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:ObsHosts
Hosts feature within Observability
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
Summary
/process_list
endpoint returns a 500 when performing a full page refresh.500_processes.mov
When the page is loading, 2 calls happen. The first returns a 500
The error is caused by a missing
index_pattern
attribute, which is missing at the time of the first call because the data view is still loading and can't provide theindex_pattern
information.Suggestion
Instead of passing the index pattern in the request, the endpoint should be capable of getting in the server, similar to what
metadata
endpoint does https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability_solution/infra/server/routes/metadata/lib/get_metric_metadata.tsAcceptance criteria
/process_list
should return a 400 in case mandatory parameters are missing/process_list
should be able to determine the index pattern to be used.The text was updated successfully, but these errors were encountered: