Skip to content

Show oldest stream message timestamp in management UI#15412

Merged
michaelklishin merged 1 commit into
mainfrom
md/first-timestamp-ui
May 27, 2026
Merged

Show oldest stream message timestamp in management UI#15412
michaelklishin merged 1 commit into
mainfrom
md/first-timestamp-ui

Conversation

@the-mikedavis

Copy link
Copy Markdown
Collaborator

This change shows the first_timestamp counter's value as a detail in the management UI as a formatted timestamp. This is somewhat useful for attaching offset listeners by timestamp - you know the oldest timestamp in the stream you can start from.

Example... oldest-message

This change shows the `first_timestamp` counter's value as a detail in
the management UI as a formatted timestamp. This is somewhat useful for
attaching offset listeners by timestamp - you know the oldest timestamp
in the stream you can start from.
@the-mikedavis the-mikedavis self-assigned this Feb 6, 2026
<td><%= fmt_string(queue.segments) %></td>
</tr>
<tr>
<th>Oldest message</th>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

"Oldest message" ? "First timestamp" ? I'm not attached to the phrasing here

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.

"Oldest" is unambiguous while "first" can be interpreted as the head or the tail, so I'd use "oldest" personally.


function fmt_timestamp_mini(ts) {
if (ts == undefined) {
return UNKNOWN_REPR;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

These changes show the dimmed "?" when the page is waiting for data to arrive. Otherwise these fmts would show "NaN-NaN-NaN"

@michaelklishin michaelklishin added this to the 4.4.0 milestone May 27, 2026
@michaelklishin michaelklishin merged commit 6f46e24 into main May 27, 2026
575 of 579 checks passed
@michaelklishin michaelklishin deleted the md/first-timestamp-ui branch May 27, 2026 21:42
michaelklishin added a commit that referenced this pull request May 27, 2026
Show oldest stream message timestamp in management UI (backport #15412)
michaelklishin added a commit that referenced this pull request May 28, 2026
Show oldest stream message timestamp in management UI (backport #15412) (backport #16551)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants