Skip to content

fix: only flag truncation when results exceed the limit - #9

Open
leowyleo wants to merge 2 commits into
TrudieMasenheimer3:mainfrom
leowyleo:fix/truncation-false-positive
Open

fix: only flag truncation when results exceed the limit#9
leowyleo wants to merge 2 commits into
TrudieMasenheimer3:mainfrom
leowyleo:fix/truncation-false-positive

Conversation

@leowyleo

@leowyleo leowyleo commented Aug 15, 2026

Copy link
Copy Markdown

Fixes the truncation false-positive at its root: truncate() now flags truncation only when results strictly exceed the limit, correcting the off-by-one at len==limit. limitParam() parses the query parameter. This is the honest scope for this repo — its api.go was an unimplemented skeleton, so I removed the fake engine stub I had added and kept only the correct boundary logic. Wiring the real promql engine belongs to integration with the full codebase. Closes #1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🎯 Fix false positive truncation warning in /api/v1/query when result count equals limit

1 participant