From: Julien Lancelot Date: Tue, 22 Aug 2017 13:46:08 +0000 (+0200) Subject: SONAR-9616 Add forgotten changelog about branch in api/component/show X-Git-Tag: 6.6-RC1~380^2~72 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0813487c93c64a682e4a116634dddd7efd90060;p=sonarqube.git SONAR-9616 Add forgotten changelog about branch in api/component/show --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/component/ws/ShowAction.java b/server/sonar-server/src/main/java/org/sonar/server/component/ws/ShowAction.java index f0953bee693..e5d820d2c64 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/component/ws/ShowAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/component/ws/ShowAction.java @@ -75,7 +75,8 @@ public class ShowAction implements ComponentsWsAction { new Change("6.4", "Analysis date has been added to the response"), new Change("6.4", "The field 'id' is deprecated in the response"), new Change("6.4", "The 'visibility' field is added to the response"), - new Change("6.5", "Leak period date is added to the response")) + new Change("6.5", "Leak period date is added to the response"), + new Change("6.6", "'branch' is added to the response")) .setHandler(this); action.createParam(PARAM_COMPONENT_ID) diff --git a/server/sonar-server/src/test/java/org/sonar/server/component/ws/ShowActionTest.java b/server/sonar-server/src/test/java/org/sonar/server/component/ws/ShowActionTest.java index ee08c280fc0..66cf9d599de 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/component/ws/ShowActionTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/component/ws/ShowActionTest.java @@ -78,7 +78,8 @@ public class ShowActionTest { tuple("6.4", "Analysis date has been added to the response"), tuple("6.4", "The field 'id' is deprecated in the response"), tuple("6.4", "The 'visibility' field is added to the response"), - tuple("6.5", "Leak period date is added to the response")); + tuple("6.5", "Leak period date is added to the response"), + tuple("6.6", "'branch' is added to the response")); assertThat(action.params()).extracting(WebService.Param::key).containsExactlyInAnyOrder("component", "componentId", "branch"); WebService.Param componentId = action.param(PARAM_COMPONENT_ID);