slackhq / astra

Astra is a structured log search and analytics engine developed by Slack and Salesforce
https://slackhq.github.io/astra/
MIT License
213 stars 30 forks source link

Add the ability to parse aggregations with OpenSearch #1082

Closed kyle-sammons closed 1 month ago

kyle-sammons commented 1 month ago

Summary

This PR adds the ability to parse aggregations with OpenSearch when the optional feature flag astra.query.useOpenSearchAggregationParsing is enabled. This follows the same pattern as the query refactor we did awhile back, keeping both the old parsing and new parsing paths in the code, and only switching between based on the feature flag. As such it should be reasonably inert and safe to deploy.

I also did some minor fixes to to the changes made in https://github.com/slackhq/astra/pull/1081, and added some tests; both of which were missed due to time constraints.

Requirements

bryanlb commented 1 month ago

Closes #629

bryanlb commented 1 month ago

Closes #628