From 3e6eefb171d2b06c7f1e5efc8d8d559195df974e Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Wed, 24 May 2017 15:58:49 +0200 Subject: SONAR-9308 WS api/issues/search do not return the component uuid in the flows location --- .../src/main/java/org/sonar/server/issue/ws/SearchResponseFormat.java | 3 --- sonar-ws/src/main/protobuf/ws-issues.proto | 2 +- 2 files changed, 1 insertion(+), 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; -- cgit v1.2.3