From 130b050813c91466815252a929fe2e29879da9f3 Mon Sep 17 00:00:00 2001 From: Jacek Date: Fri, 2 Jul 2021 16:26:35 +0200 Subject: SONAR-10762 Drop usage of 'user_managed' column --- .../sonar/scanner/repository/DefaultMetricsRepositoryLoader.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'sonar-scanner-engine/src/main') diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/DefaultMetricsRepositoryLoader.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/DefaultMetricsRepositoryLoader.java index ab2f66462ea..02ce013acaf 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/DefaultMetricsRepositoryLoader.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/DefaultMetricsRepositoryLoader.java @@ -31,7 +31,7 @@ import org.sonarqube.ws.client.GetRequest; public class DefaultMetricsRepositoryLoader implements MetricsRepositoryLoader { - private static final String METRICS_SEARCH_URL = "/api/metrics/search?f=name,description,direction,qualitative,custom&ps=500&p="; + private static final String METRICS_SEARCH_URL = "/api/metrics/search?ps=500&p="; private DefaultScannerWsClient wsClient; public DefaultMetricsRepositoryLoader(DefaultScannerWsClient wsClient) { @@ -61,7 +61,7 @@ public class DefaultMetricsRepositoryLoader implements MetricsRepositoryLoader { .create() .setDirection(metric.getDirection()) .setQualitative(metric.isQualitative()) - .setUserManaged(metric.isCustom()) + .setUserManaged(false) .setDescription(metric.getDescription()) .setUuid(metric.getUuid())); } @@ -78,7 +78,6 @@ public class DefaultMetricsRepositoryLoader implements MetricsRepositoryLoader { private String description; private int direction; private boolean qualitative; - private boolean custom; public String getUuid() { return uuid; @@ -108,9 +107,6 @@ public class DefaultMetricsRepositoryLoader implements MetricsRepositoryLoader { return qualitative; } - public boolean isCustom() { - return custom; - } } private static class WsMetricsResponse { -- cgit v1.2.3