Fix: Search API labels misconfigured
Context
Kibana logs for project and group searches show incorrect labels:
This happens for API searches with Project and Group levels.
This MR
Addresses the incorrect scope being sent by passing additonal_params
to the search_service
being called.
Also adds specs for apdex calls with correct params. NOTE: specs were only added to the CE API because the EE API spec is quarantined due to an elasticsearch error. Ideally we want to add the apdex tests to that spec once it is fixed.
Related to #372283 (closed)
Edited by Madelein van Niekerk