sourcegraph/sourcegraph-public-snapshot

insights: how to represent language stats time scope

开放

#27,151 创建于 2021年11月5日

 (1 条评论) (0 个反应) (0 位负责人)Go (1,374 个派生)auto 404
backendcode-insightsdebtgood first issueinsights-settings-migration

仓库指标

星标
 (10,290 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

I guess my only concern here is that the semantic of a 0 value interval is ambiguous. What does that mean to a client, and how should one execute the search queries to generate this series based on this information?

I wonder if we just should have a new TimeScope type for a single time point (the most recent for example)? The intention behind the TimeScope was to ultimately have multiple types, some of which would have an interval and others would be different. Maybe this is a justification here? What do you think?

Originally posted by @coury-clark in https://github.com/sourcegraph/sourcegraph/pull/27102#discussion_r743760401

贡献者指南