Skip to content

fix(channels): ignore zero failure timestamps#1157

Open
evgyur wants to merge 1 commit into
nextlevelbuilder:devfrom
evgyur:fix/channel-diagnostics-zero-time
Open

fix(channels): ignore zero failure timestamps#1157
evgyur wants to merge 1 commit into
nextlevelbuilder:devfrom
evgyur:fix/channel-diagnostics-zero-time

Conversation

@evgyur

@evgyur evgyur commented May 19, 2026

Copy link
Copy Markdown

Summary

  • Moves the channel detail diagnostics visibility check into a shared helper.
  • Uses formatRelativeTime(status?.first_failed_at) so Go zero-value timestamps (0001-01-01T00:00:00Z) are treated as absent.
  • Adds regression coverage for healthy recovered channels and active degraded/failed states.

Test plan

  • corepack pnpm install --frozen-lockfile
  • corepack pnpm exec vitest run src/pages/channels/channels-status-utils.test.ts
  • corepack pnpm exec tsc -b --pretty false
  • git diff --check

Closes #1143

Use the existing relative-time guard when deciding whether to show channel diagnostics, so Go zero-value timestamps do not make healthy channels look broken.

Add regression coverage for zero-value first_failed_at and active failure states.
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.

Channel diagnostics card shown incorrectly when channel is healthy due to Go zero-value time serialization

1 participant