Skip to content

Search query builder refactor

Terri Chu requested to merge tchu-work-items-query-builder-poc into master

What does this MR do and why?

Related to #457724 (closed) and #461872 (closed)

Create new classes to aid in building generalized Elasticsearch queries:

  • Search::Elastic::QueryBuilder
  • Search::Elastic::Queries
  • Search::Elastic::Filters
  • Search::Elastic::Aggregations
  • Search::Elastic::SortBy

Using the new classes to replace the Issue Elasticsearch query construction

  • Search::Elastic::IssueQueryBuilder

note: Everything is behind a derisk flag

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Terri Chu

Merge request reports