Change ES aggregations to use terms type
What does this MR do and why?
Related to #365052 (closed)
Note: this feature is behind a disabled by default search_blobs_language_aggregation
feature flag and is not currently implemented in the frontend (yet)
- Refactor type of Elasticsearch aggregation used to terms aggregation
- Refactor existing specs to support returned json format
Screenshots or screen recordings
How to set up and validate locally
- make sure gdk is setup with elasticsearch enabled and advanced search setup
- enable the feature flag:
Feature.enable(:search_blobs_language_aggregation)
- hit the new endpoint: http://gdk.test:3000/search/aggregations?scope=blobs&search=*
- verify it comes back with json
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Terri Chu