Skip to content

frontend(topics): split retention into Retention Time and Retention Size (UX-1310)#2471

Merged
c-julin merged 3 commits into
masterfrom
jc/ux-1310-retention-display
May 28, 2026
Merged

frontend(topics): split retention into Retention Time and Retention Size (UX-1310)#2471
c-julin merged 3 commits into
masterfrom
jc/ux-1310-retention-display

Conversation

@c-julin
Copy link
Copy Markdown
Contributor

@c-julin c-julin commented May 28, 2026

Summary

  • Splits the topic quick-info "Retention" field into two labelled columns: Retention Time and Retention Size.
  • Both always render, so when one of retention.ms / retention.bytes is -1 the user now sees an unambiguous Infinite against the correct metric instead of strings like 1 day or Infinite.

Jira: https://redpandadata.atlassian.net/browse/UX-1310

Before

Retention: ~1 day or Infinite

After

Retention Time: ~1 day | Retention Size: ~Infinite

image

Test plan

  • Topic with retention.ms=86400000, retention.bytes=-1 → "Retention Time: ~1 day" and "Retention Size: ~Infinite".
  • Topic with retention.ms=-1, retention.bytes=10737418240 → "Retention Time: ~Infinite" and "Retention Size: ~10 GB / partition".
  • Topic with both -1 → both columns show "~Infinite".
  • Compacted topic (cleanup.policy=compact) still shows the Segment column unchanged.

c-julin added 2 commits May 28, 2026 11:32
…ize (UX-1310)

The topic quick-info bar joined retention.ms and retention.bytes with
"or", producing ambiguous strings like "1 day or Infinite" when only
one metric was set to -1. Splits the field into two clearly labelled
columns ("Retention Time" / "Retention Size") that always render, so
an Infinite value reads unambiguously.
@c-julin c-julin requested a review from malinskibeniamin May 28, 2026 11:13
@c-julin c-julin enabled auto-merge (squash) May 28, 2026 11:18
@c-julin c-julin merged commit e6e1722 into master May 28, 2026
18 checks passed
@c-julin c-julin deleted the jc/ux-1310-retention-display branch May 28, 2026 11:25
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.

2 participants