Skip to content

fix(report): compare differences in both context direction#38

Merged
rieckpil merged 1 commit intomainfrom
fix-profiles
Mar 1, 2026
Merged

fix(report): compare differences in both context direction#38
rieckpil merged 1 commit intomainfrom
fix-profiles

Conversation

@rieckpil
Copy link
Contributor

@rieckpil rieckpil commented Mar 1, 2026

The formatDetailedValue() early-return guard was checking only the left side (Context A) for emptiness and returning "No values configured" for both sides. This caused the Detailed Comparison panel to display "No values configured" on both sides even when Context B had profiles.

Fix by checking both sides independently: only short-circuit when both are empty, and normalise single-falsy-element arrays to [] before passing them to Diff.diffArrays so the library produces the correct diff.

…profiles

The formatDetailedValue() early-return guard was checking only the left
side (Context A) for emptiness and returning "No values configured" for
both sides. This caused the Detailed Comparison panel to display
"No values configured" on both sides even when Context B had profiles.

Fix by checking both sides independently: only short-circuit when both
are empty, and normalise single-falsy-element arrays to [] before
passing them to Diff.diffArrays so the library produces the correct diff.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 1, 2026

@rieckpil rieckpil merged commit 0415504 into main Mar 1, 2026
8 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.

1 participant