Files
cozystack/internal/observabilityproxy
ZverGuy b876368a3f fix(observability-proxy): refuse any minus right after an offset again
Telling a compound duration from a subtraction by a duration-part
pattern missed forms metricsql accepts after the minus: offset 5m-1.h
is 55 minutes forward and offset 5m-.5h is 25, yet both read as five
minutes back, and the lookup silently missed pods created in between.
A pattern that followed scanSingleDuration exactly would still be a
second copy of the grammar to keep in step, so any minus right after
an offset's duration is refused again; offset 1h-1 and offset 5m-y now
answer 422 as well, and metricsql cannot parse the latter anyway.

Assisted-by: LLM
Signed-off-by: ZverGuy <maximbel2003@gmail.com>
2026-11-10 04:03:24 +07:00
..