sourcegraph/sourcegraph-public-snapshot

insights: support querying just the "last" aggregated data point (pie charts, etc.)

開放

#18,967 建立於 2021年3月9日

 (2 則留言) (0 個反應) (0 位負責人)Go (1,374 個分叉)auto 404
backendcode-insightsfeaturegood first issue

倉庫指標

星標
 (10,290 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Many insights will only need to render the "last" data point. Instead of the frontend querying the most recent time range (which would work) we can allow the frontend to pass a Limit option. The DB store already supports it, it's just not exposed over GraphQL: https://sourcegraph.com/github.com/sourcegraph/sourcegraph@61e8253febdee226c940a81c467affb0d4d0b809/-/blob/enterprise/internal/insights/resolvers/insight_series_resolver.go#L42:5

貢獻者指南