fix(custom-guides): finalize decode warning budget by BLCCoreStudio · Pull Request #1738 · grafana/grafana-pathfinder-app · GitHub
Skip to content

fix(custom-guides): finalize decode warning budget - #1738

Merged
moxious merged 1 commit into
grafana:mainfrom
BLCCoreStudio:fix/decode-warning-drain-finalization
Aug 29, 2026
Merged

fix(custom-guides): finalize decode warning budget#1738
moxious merged 1 commit into
grafana:mainfrom
BLCCoreStudio:fix/decode-warning-drain-finalization

Conversation

@BLCCoreStudio

@BLCCoreStudio BLCCoreStudio commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

The decode-warning suppression summary was previously emitted from ListPage, which meant it only appeared when pagination reached the final page.

A catalogue drain can also stop early when it reaches the aggregate entry budget, or return because a later page fails. In those cases the drain had already accumulated suppressed decode warnings, but the summary was never emitted.

Move that finalization to drainCustomGuides so the summary runs once whenever the drain finishes, regardless of which terminal path is taken.

Add regression coverage for normal pagination, aggregate-budget truncation, and page errors using the real customGuideHTTPClient.

How to verify

  • env GOTOOLCHAIN=go1.26.5 go test ./pkg/plugin -count=1
  • env GOTOOLCHAIN=go1.26.5 npm run lint:go
  • env GOTOOLCHAIN=go1.26.5 npm run test:go
  • LC_ALL=C env GOTOOLCHAIN=go1.26.5 npm run check

Breaking changes

None.

Fixes #1725

@BLCCoreStudio
BLCCoreStudio marked this pull request as ready for review August 29, 2026 19:43

@moxious moxious left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making the decode-warning suppression summary run on every catalogue-drain exit and for covering both entry-budget and page-error paths.

No blocking issues. This PR is mergeable.

PR Review: #1738
Summary: finalize decode warning budget
Verdict: Approve
Results: 0 blockers, 0 non-blocking findings, 0 follow-ups

Next: after this approval is published, a maintainer can merge the PR.

@moxious
moxious merged commit 61a81b7 into grafana:main Aug 29, 2026
35 of 36 checks passed
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(custom-guides): decode-warning summary is lost when a drain stops at its entry budget

2 participants