Skip to content

Commit

Permalink
SLCORE-1031 Modify label for missing binding on hotspots (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
nquinquenel authored Nov 11, 2024
1 parent 9dfee8d commit 2812f47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public List<OrganizationDto> fuzzySearchOrganizations(Either<TokenDto, UsernameP
.entrySet()
.stream()
.sorted(Comparator.comparing(Map.Entry<OrganizationDto, Double>::getValue).reversed()
.thenComparing(Comparator.comparing(e -> e.getKey().getName(), String.CASE_INSENSITIVE_ORDER)))
.thenComparing(e -> e.getKey().getName(), String.CASE_INSENSITIVE_ORDER))
.limit(10)
.map(Map.Entry::getKey)
.collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
public class HotspotService {

private static final SonarLintLogger LOG = SonarLintLogger.get();
private static final String NO_BINDING_REASON = "The project is not bound, please bind it to SonarQube 9.9+ or SonarCloud";
private static final String NO_BINDING_REASON = "The project is not bound, please bind it to SonarQube (Server, Cloud)";

private static final String REVIEW_STATUS_UPDATE_PERMISSION_MISSING_REASON = "Changing a hotspot's status requires the 'Administer Security Hotspot' permission.";
private final SonarLintRpcClient client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void it_should_not_support_local_detection_in_standalone_mode() {

assertThat(checkResponse)
.extracting(CheckLocalDetectionSupportedResponse::isSupported, CheckLocalDetectionSupportedResponse::getReason)
.containsExactly(false, "The project is not bound, please bind it to SonarQube 9.9+ or SonarCloud");
.containsExactly(false, "The project is not bound, please bind it to SonarQube (Server, Cloud)");
}

@Test
Expand Down

0 comments on commit 2812f47

Please sign in to comment.