Skip to content

Conversation

@asgerf
Copy link
Contributor

@asgerf asgerf commented Apr 3, 2025

Fixes a minor bug in the compare performance view, where the "ms" unit was not displayed on a grouped predicate entry.

Since the optional parameter unit is now provided at all call sites, and its absence was the cause of the bug, I also decided to make the parameter mandatory.

Before: missing unit

The unit was missing next to the first 2 in this screenshot:
Screenshot 2025-04-03 at 14 52 45

After: unit is there

(sorry, I didn't have the same query history item available for both screenshots)

Screenshot 2025-04-03 at 14 52 16

Copilot AI review requested due to automatic review settings April 3, 2025 12:55
@asgerf asgerf requested a review from a team as a code owner April 3, 2025 12:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR addresses a bug in the compare performance view where the unit (e.g. "ms") was missing for grouped predicate entries. The changes update the function signature and its calls to ensure that the unit is provided.

  • Updated renderOptionalValue signature to reflect the expected unit parameter.
  • Modified calls to renderOptionalValue to supply the unit from metric.unit.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

Copy link
Member

@koesie10 koesie10 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@asgerf asgerf merged commit 6e59d40 into github:main Apr 22, 2025
18 of 23 checks passed
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