Skip to content

fix: keep unavailable-clusters notice when list_events truncates - #7

Merged
ValgulNecron merged 1 commit into
mainfrom
fix/events-truncation-keeps-unavailable
Nov 23, 2026
Merged

ValgulNecron merged 1 commit into
mainfrom
fix/events-truncation-keeps-unavailable

Conversation

@ValgulNecron

Copy link
Copy Markdown
Contributor

Summary

In per-user mode, list_events across clusters puts unavailable clusters: <ids> in the list's resource version when some clusters can't be read (internal/panel/fanout.go). When the merged list had more than 100 events, boundAndSortEvents replaced that value with the truncation notice, so the warning was lost (spec 037 FR-022). Found by CodeRabbit on GameplanePanel/Gameplane#1081.

  • tools.go: the truncation notice now keeps an existing unavailable-clusters notice after it (truncated (showing newest 100 of 150 events); unavailable clusters: east, west). A plain Kubernetes resource version is still replaced, as before.
  • main_test.go: new TestBoundAndSortEvents_TruncationKeepsUnavailableNotice (both cases). Existing tests unchanged.

After merge, the mcp-server pointer bump goes into GameplanePanel/Gameplane#1081.


Generated by Claude Code

boundAndSortEvents replaced the resource version with the truncation
notice, dropping the unavailable-clusters notice set by the panel
fan-out. Append it after the truncation notice instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5f07a3d9-9924-4d49-9562-978906b5c546
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron added the bug Something isn't working label Nov 23, 2026 — with Claude
@ValgulNecron
ValgulNecron merged commit 454c33d into main Nov 23, 2026
6 checks passed
ValgulNecron pushed a commit to GameplanePanel/Gameplane that referenced this pull request Nov 23, 2026
Picks up GameplanePanel/mcp#7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron
ValgulNecron deleted the fix/events-truncation-keeps-unavailable branch November 24, 2026 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants