aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-05-24 15:58:49 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2017-05-24 16:10:07 +0200
commit3e6eefb171d2b06c7f1e5efc8d8d559195df974e (patch)
treed45d11995966b342577196b7558ffadf4834739a
parent8dd151e0bebd398d415ae99fde5bf10f11fcb00a (diff)
downloadsonarqube-3e6eefb171d2b06c7f1e5efc8d8d559195df974e.tar.gz
sonarqube-3e6eefb171d2b06c7f1e5efc8d8d559195df974e.zip
SONAR-9308 WS api/issues/search do not return the component uuid in the flows location
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java3
-rw-r--r--sonar-ws/src/main/protobuf/ws-issues.proto2
2 files changed, 1 insertions, 4 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java
index 4ea2c89a741..8c0f4ff97bf 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java
@@ -210,9 +210,6 @@ public class SearchResponseFormat {
private static Location convertLocation(DbIssues.Location source) {
Location.Builder target = Location.newBuilder();
- if (source.hasComponentId()) {
- target.setComponentId(source.getComponentId());
- }
if (source.hasMsg()) {
target.setMsg(source.getMsg());
}
diff --git a/sonar-ws/src/main/protobuf/ws-issues.proto b/sonar-ws/src/main/protobuf/ws-issues.proto
index 30a54ddbd34..ce03b0180d7 100644
--- a/sonar-ws/src/main/protobuf/ws-issues.proto
+++ b/sonar-ws/src/main/protobuf/ws-issues.proto
@@ -120,7 +120,7 @@ message Flow {
}
message Location {
- optional string componentId = 1;
+ optional string unusedComponentId = 1;
// Only when component is a file. Can be empty for a file if this is an issue global to the file.
optional sonarqube.ws.commons.TextRange textRange = 2;
optional string msg = 3;