Skip to content

[webconsole] Refine definition of 'paused' connector#6211

Queued
mihaibudiu wants to merge 1 commit into
mainfrom
issue6206
Queued

[webconsole] Refine definition of 'paused' connector#6211
mihaibudiu wants to merge 1 commit into
mainfrom
issue6206

Conversation

@mihaibudiu
Copy link
Copy Markdown
Contributor

I hope this fixes #6206, but I don't have a complex enough pipeline handy to test

@mihaibudiu mihaibudiu requested a review from Karakatiza666 May 9, 2026 04:07
Copy link
Copy Markdown
Contributor

@Karakatiza666 Karakatiza666 left a comment

Choose a reason for hiding this comment

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

Yes, this will fix it. Please add a unit test (in MetricsTables.svelte.spec.ts) that checks that if there are two connectors - one end of input, one paused - the combined row shows "box-icon-paused" icon and not "box-icon-running". Claude will do it nicely

Copy link
Copy Markdown

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

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

George already flagged this -- please add a unit test in MetricsTables.svelte.spec.ts verifying that a connector with end_of_input === true and paused === false is not counted as running in the combined status row.


{#snippet tableMultiConnectorCell(data: AggregatedInputEndpointMetrics, isExpanded: boolean)}
{@const runningCount = data.connectors.filter((c) => c.paused === false).length}
{@const runningCount = data.connectors.filter((c) => c.paused === false && c.metrics.end_of_input === false).length}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Behavior change without tests. The combined row icon now treats end-of-input connectors as non-running. This is testable with the existing accumulatePipelineMetrics test infrastructure in MetricsTables.svelte.spec.ts. A test case: two connectors -- one paused: false, end_of_input: true and one paused: false, end_of_input: false -- the combined icon should show running (not paused).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It will take me a few hours to figure out how to write and run tests for the UI.

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@Karakatiza666 Karakatiza666 enabled auto-merge May 12, 2026 07:36
@Karakatiza666 Karakatiza666 added this pull request to the merge queue May 12, 2026
Any commits made after this event will not be merged.
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.

WebConsole incorrectly summarizes connector status.

3 participants