[Infra] Replace MetricsUIAggregation
in favor of estypes.AggregationsAggregate
#190311
Labels
Team:obs-ux-infra_services
Observability Infrastructure & Services User Experience Team
technical debt
Improvement of the software architecture and operational architecture
Summary
In Infra, there is extensive code for typing Elasticsearch request parameters using
io-ts
. This code was created a few years ago (git history), before the Elasticsearch client implemented ts types.While one of the benefits of using
io-ts
is runtime validation, in this case, the benefit doesn't outweigh the cost of maintaining this code. We might be better off relying on the types provided by the elasticsearch library.AC
MetricsUIAggregation
in favor of estypes.AggregationsAggregateMetricsUIAggregation
related types definitions are removedThe text was updated successfully, but these errors were encountered: