rill icon indicating copy to clipboard operation
rill copied to clipboard

Integrate with `MetricsViewTimeRanges` API

Open ericpgreen2 opened this issue 7 months ago • 2 comments

To eliminate the risk of inconsistency in how we resolve time range expressions in the backend vs frontend.

ericpgreen2 avatar May 02 '25 02:05 ericpgreen2

@ericpgreen2, can you add more detail here? @mindspank was under the impression that this is related to Pivot Big Number alignment (using big number aggregation API)

ericokuma avatar Jun 09 '25 18:06 ericokuma

No, they're unrelated.

Historically, we've maintained time range resolution logic in the frontend. Going forward, we want to push all our time range resolution logic into the backend– so we have one source-of-truth, one piece of code to maintain. Today, the backend exposes this MetricsViewTimeRanges API which the frontend can use to resolve time range expressions. Today, the API supports our current syntax; hopefully imminently, it'll support our new "Rill Time" syntax.

ericpgreen2 avatar Jun 10 '25 01:06 ericpgreen2

Once Rill Time feature flag is enabled, this task will be covered. I'm going to mark as a duplicate.

jkhwu avatar Jul 22 '25 16:07 jkhwu