insights: aggregations- generate updated search query based on aggregation type and value
Created by: chwarwick
The graphql return object for a search aggregation contains a query
field which should be populated with a modified query based on the original search in one of two ways:
- A new query filter for repo/author/filepath based on the with the aggregation value
- A modified search pattern when a capture group aggregation is being returned.
/cc @joelkw @felixfbecker @vovakulikov @unclejustin