Skip to content

[web-console] Fix pipeline health details UI doesn't display some fields#6362

Merged
Karakatiza666 merged 2 commits into
mainfrom
issue6272
Jun 1, 2026
Merged

[web-console] Fix pipeline health details UI doesn't display some fields#6362
Karakatiza666 merged 2 commits into
mainfrom
issue6272

Conversation

@Karakatiza666

Copy link
Copy Markdown
Contributor

Testing: manual, extended unit test

Fix #6272

Signed-off-by: Karakatiza666 <bulakh.96@gmail.com>
Signed-off-by: Karakatiza666 <bulakh.96@gmail.com>
@Karakatiza666 Karakatiza666 requested a review from snkas June 1, 2026 10:58

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Web-console fix for #6272. Two files, tight scope:

  1. formatStatusWithDesired adds the "(desired is X)" suffix only when the desired value is non-null and differs from the current — covers the no-mismatch, mismatch, and nullish-desired cases.
  2. storage_status + storage_status_details are now rendered in the event description (the original bug: these fields were missing from the pretty-printed health details).
  3. Tests cover all four shapes (full event, suffix omitted when equal, suffix appended when different, suffix omitted when desired is nullish) and the new storage_status_details JSON block.

The format helper does String(desired) === String(current) for the equality check, which handles the common case correctly but would still suppress the suffix if e.g. both are coerced to "[object Object]". Given the field types in PipelineMonitorEventSelectedInfo are enum strings or nullable, this is fine in practice — non-blocking.

LGTM.

it('renders status detail blocks as pretty JSON when provided', () => {
const out = formatPipelineEventDescription(
makeEvent({
storage_status_details: { backend: 'file' },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It only has checkpoints

expect(out).toContain('storage_status: (none)')
expect(out).toContain('deployment_resources_status: Stopped')
expect(out).toContain('deployment_runtime_status: (none)')
expect(out).not.toContain('desired is')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are these tests or assertions?

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.

Assertions for individual fields expected to be in the pretty-printed text

@Karakatiza666 Karakatiza666 added this pull request to the merge queue Jun 1, 2026
Merged via the queue into main with commit 1fb6c54 Jun 1, 2026
1 check passed
@Karakatiza666 Karakatiza666 deleted the issue6272 branch June 1, 2026 21:14
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.

Missing fields in pipeline health events UI

4 participants