]> source.dussan.org Git - sonarqube.git/commitdiff
Explicit difference between api/projects/search and api/components/search
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Wed, 30 Aug 2017 09:57:40 +0000 (11:57 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Mon, 11 Sep 2017 09:28:29 +0000 (11:28 +0200)
server/sonar-server/src/main/java/org/sonar/server/component/ws/SearchAction.java
server/sonar-server/src/main/java/org/sonar/server/project/ws/SearchAction.java
server/sonar-server/src/test/java/org/sonar/server/project/ws/SearchActionTest.java

index d5bca61331e50f204cb9b2afbd3349006b2d1b03..33e706ee1ba3d3b145d33d5da9e651ac649aa033 100644 (file)
@@ -80,8 +80,7 @@ public class SearchAction implements ComponentsWsAction {
   public void define(WebService.NewController context) {
     WebService.NewAction action = context.createAction(ACTION_SEARCH)
       .setSince("6.3")
-      .setDescription("Search for components.<br>" +
-        "Returns the components with the 'Browse' permission.")
+      .setDescription("Search for components")
       .addPagingParams(100)
       .addSearchQuery("sona", "component names", "component keys")
       .setResponseExample(getClass().getResource("search-components-example.json"))
index db5a30ff61a5531990880261deb5d0a15297058c..e801645689c2a4a3256a8ae03e250a9609302f12 100644 (file)
@@ -73,7 +73,7 @@ public class SearchAction implements ProjectsWsAction {
   public void define(WebService.NewController context) {
     WebService.NewAction action = context.createAction(ACTION_SEARCH)
       .setSince("6.3")
-      .setDescription("Search for projects or views.<br>" +
+      .setDescription("Search for projects or views to administrate them.<br>" +
         "Requires 'System Administrator' permission")
       .setInternal(true)
       .addPagingParams(100, MAX_PAGE_SIZE)
index 658e15e48af72836c400b7b913ad4ee9fa6e495f..356e9cf9033d6333e10e6893fb97a81ae5a3cc95 100644 (file)
@@ -247,7 +247,7 @@ public class SearchActionTest {
     WebService.Action action = ws.getDef();
     assertThat(action.key()).isEqualTo("search");
     assertThat(action.isPost()).isFalse();
-    assertThat(action.description()).isEqualTo("Search for projects or views.<br>Requires 'System Administrator' permission");
+    assertThat(action.description()).isEqualTo("Search for projects or views to administrate them.<br>Requires 'System Administrator' permission");
     assertThat(action.isInternal()).isTrue();
     assertThat(action.since()).isEqualTo("6.3");
     assertThat(action.handler()).isEqualTo(ws.getDef().handler());