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.
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 endpointconnector.sync_job_list
with the pattern_connector/_sync_job
. When the user types inGET _connector/_sync_job
that endpointconnector.sync_job_list
should be matched, notconnector.get
.The code for this logic is in the function
populateContext
in the filehttps://github.com/elastic/kibana/blob/main/src/plugins/console/public/lib/autocomplete/engine.js
.