Skip to content

Refactored upgrade recommendations logic#656

Open
stijnpotters1 wants to merge 4 commits into
masterfrom
fix/affected-branches
Open

Refactored upgrade recommendations logic#656
stijnpotters1 wants to merge 4 commits into
masterfrom
fix/affected-branches

Conversation

@stijnpotters1

@stijnpotters1 stijnpotters1 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor
  • Did not show affected release if the release was unmaintained
  • Clean up some other logic as well for order of recommended patch and stable versions

38821:
image

CVE-2026-50193
image

@stijnpotters1 stijnpotters1 marked this pull request as draft July 8, 2026 12:48
@stijnpotters1 stijnpotters1 self-assigned this Jul 8, 2026
@stijnpotters1 stijnpotters1 marked this pull request as ready for review July 8, 2026 12:53
@stijnpotters1 stijnpotters1 marked this pull request as draft July 8, 2026 12:55
@stijnpotters1 stijnpotters1 linked an issue Jul 8, 2026 that may be closed by this pull request
@stijnpotters1 stijnpotters1 changed the title refactored upgrade recommendations logic Refactored upgrade recommendations logic Jul 8, 2026
@stijnpotters1 stijnpotters1 marked this pull request as ready for review July 8, 2026 12:59
@sonarqubecloud

sonarqubecloud Bot commented Jul 8, 2026

Copy link
Copy Markdown

@Matthbo Matthbo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I see quite some sonarcloud warnings, please look at them

Comment on lines +719 to +723
return IntStream.range(0, releases.size())
.filter(index -> affectedIds.contains(releases.get(index).getId()))
.max()
.orElse(-1);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not saying this is wrong, but I do wonder why you changed it to this

}
try {
return Arrays.stream(parts).mapToInt(Integer::parseInt).toArray();
} catch (NumberFormatException e) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No single letter variables, remember

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.

False positive?

2 participants