aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2021-07-02 16:26:35 +0200
committersonartech <sonartech@sonarsource.com>2021-07-07 20:03:25 +0000
commit130b050813c91466815252a929fe2e29879da9f3 (patch)
tree94d73c226f32d14355b6f5a69938d731b6671dc0 /sonar-scanner-engine/src/main
parenta5fc8a2122a569dc2305b10594d672df2a25a548 (diff)
downloadsonarqube-130b050813c91466815252a929fe2e29879da9f3.tar.gz
sonarqube-130b050813c91466815252a929fe2e29879da9f3.zip
SONAR-10762 Drop usage of 'user_managed' column
Diffstat (limited to 'sonar-scanner-engine/src/main')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/repository/DefaultMetricsRepositoryLoader.java8
1 files changed, 2 insertions, 6 deletions
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 {