insights: add ability for webapp to get a search query / URL for a given timeframe's search results
Created by: slimsag
This could help with debugging the historical enqueuer, as well as making it possible to click on an insight's data point and get a search query for that data point.
Here's what we would need to do:
- Add a
query
field toInsightDataPoint
and implement it here. - The logic to produce the actual search query is super simple and already exists: it's exactly what the historical enqueuer produces to search a historical point in time, see here - we would literally just need to expose that logic over GraphQL.