elastic / kibana

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

[Console] Autocomplete engine matches incorrect endpoint #182360

Open yuliacech opened 5 months ago

yuliacech commented 5 months ago

The autocomplete engine matches a wrong endpoint when the url for the endpoint can be matched by the pattern of a different endpoint. For example, the endpoint connector.get with the pattern _connector/{connector_id} is matched for the endpoint connector.sync_job_list with the pattern _connector/_sync_job. When the user types in GET _connector/_sync_job that endpoint connector.sync_job_list should be matched, not connector.get.

The code for this logic is in the function populateContext in the file https://github.com/elastic/kibana/blob/main/src/plugins/console/public/lib/autocomplete/engine.js.

elasticmachine commented 5 months ago

Pinging @elastic/kibana-management (Team:Kibana Management)