Skip to content

fix(streams): streams overview page field fixes - #26811

Open
laura-b-g wants to merge 7 commits into
masterfrom
issue-14639/streams-page-fields
Open

fix(streams): streams overview page field fixes#26811
laura-b-g wants to merge 7 commits into
masterfrom
issue-14639/streams-page-fields

Conversation

@laura-b-g

@laura-b-g laura-b-g commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes several display issues in the Streams overview. The Avg/Max Processing Time columns no longer show a misleading 0 ms for idle streams — the backend now returns null for streams absent from the aggregation, and the frontend guard was tightened to typeof !== 'number' so only real numeric values (including a genuine 0) are shown. The Status column pill is replaced with a quieter dot-and-tint indicator to reduce visual noise in the table. See Graylog2/graylog-plugin-enterprise#14639.

Closes Graylog2/graylog-plugin-enterprise#14639

/prd Graylog2/graylog-plugin-enterprise#15016

Motivation and Context

StreamAvgProcessingTimeDescriptor and StreamMaxProcessingTimeDescriptor used results.getOrDefault(id, 0.0), conflating "stream absent from the aggregation result" with "stream processed all messages in ~0ms". The frontend guard used a falsy check (!value), which also treated a real 0 as missing. The Running/Paused status pill used a full-color fill, causing varying widths and visual noise across rows.

How can this be tested?

Setup: a Graylog instance with both active streams (receiving messages) and idle streams (no recent traffic). The companion enterprise PR (/prd) must also be applied.

Happy path:

  • Active streams show their real avg/max processing time values
  • Streams with no recent traffic show a blank cell in both columns
  • The Status column shows a small colored dot with a subtle tinted background for Running/Paused

Edge case:

  • A stream with genuinely fast processing (~0ms measured) should still show 0 ms, not blank

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

/nocl

Both descriptors previously defaulted to 0.0 for streams absent from the
OpenSearch aggregation (no messages in the last 15 min). A null return lets
the frontend distinguish no-data from a genuine computed 0 ms.
The Running/Paused colored pill caused visual noise in the table: varying
widths, heavy fills, and positional jitter from centering. Replace with a
small colored dot + the status word, left-aligned. The click-to-toggle
action stays in the cell with a hover state and toggle icon to signal
interactivity. Non-editable rows show the dot and word only.
@laura-b-g
laura-b-g requested a review from AntonEbel July 28, 2026 14:54
@laura-b-g
laura-b-g requested review from a team July 29, 2026 08:58
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.

1 participant