Skip to content

Insight aggregation: Add query validation checks for aggregation filter panel

Created by: vovakulikov

Blocked by https://github.com/sourcegraph/sourcegraph/issues/39954

Since we're not going to support aggregation for all queries we need to disable some aggregation types and sometimes all aggregation panel if query has non supportable filters

Currently we do not support aggregation if

  • query has AND or OR operators
  • author and date aggregations types do not support query without type commit or type diff

/cc @joelkw @felixfbecker @vovakulikov @unclejustin