]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6952 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Tue, 10 Nov 2015 09:45:13 +0000 (10:45 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Tue, 10 Nov 2015 09:45:13 +0000 (10:45 +0100)
server/sonar-server/src/main/java/org/sonar/server/issue/ws/SearchAction.java
server/sonar-web/src/main/js/apps/api-documentation/templates/api-documentation-action.hbs

index b75e8d2c3bd8ddbaa364d758005ae93b5ac80b15..37efbb73513e44507d3e44ab6a64656b7d6eb396 100644 (file)
@@ -176,7 +176,8 @@ public class SearchAction implements IssuesWsAction {
         "If this parameter is set, componentUuids must not be set.")
       .setExampleValue("org.apache.struts:struts:org.apache.struts.Action");
     action.createParam(IssueFilterParameters.COMPONENTS)
-      .setDescription("Deprecated since 5.1. If used, will have the same meaning as componentKeys AND onComponentOnly=true.");
+      .setDeprecatedSince("5.1")
+      .setDescription("If used, will have the same meaning as componentKeys AND onComponentOnly=true.");
     action.createParam(IssueFilterParameters.COMPONENT_UUIDS)
       .setDescription("To retrieve issues associated to a specific list of components their sub-components (comma-separated list of component UUIDs). " +
         INTERNAL_PARAMETER_DISCLAIMER +
@@ -185,12 +186,15 @@ public class SearchAction implements IssuesWsAction {
       .setExampleValue("584a89f2-8037-4f7b-b82c-8b45d2d63fb2");
 
     action.createParam(IssueFilterParameters.COMPONENT_ROOTS)
-      .setDescription("Deprecated since 5.1. If used, will have the same meaning as componentKeys AND onComponentOnly=false.");
+      .setDeprecatedSince("5.1")
+      .setDescription("If used, will have the same meaning as componentKeys AND onComponentOnly=false.");
     action.createParam(IssueFilterParameters.COMPONENT_ROOT_UUIDS)
-      .setDescription("Deprecated since 5.1. If used, will have the same meaning as componentUuids AND onComponentOnly=false.");
+      .setDeprecatedSince("5.1")
+      .setDescription("If used, will have the same meaning as componentUuids AND onComponentOnly=false.");
 
     action.createParam(IssueFilterParameters.PROJECTS)
-      .setDescription("Deprecated since 5.1. See projectKeys");
+      .setDeprecatedSince("5.1")
+      .setDescription("See projectKeys");
     action.createParam(IssueFilterParameters.PROJECT_KEYS)
       .setDescription("To retrieve issues associated to a specific list of projects (comma-separated list of project keys). " +
         INTERNAL_PARAMETER_DISCLAIMER +
index 1a51f37bcf652d455b28d38f292342f48a24125e..19e44bef5d7e341a9f392c30c65f471c5cb9f6f8 100644 (file)
@@ -10,7 +10,7 @@
     {{#if deprecatedSince}}
       <span class="spacer-right">
         <span class="badge badge-danger" data-toggle="tooltip"
-              title="{{t 'api_documentation.deprecation_tooltip'}}">deprecated since {{deprecatedSince}}</span>
+              title="{{t 'api_documentation.deprecation_tooltip'}}">Deprecated since {{deprecatedSince}}</span>
       </span>
     {{/if}}
     {{#if since}}
           {{#if since}}
             <div class="note">since {{since}}</div>
           {{/if}}
+          {{#if deprecatedSince}}
+            <span class="badge badge-danger little-spacer-top" data-toggle="tooltip"
+                  title="{{t 'api_documentation.deprecation_tooltip'}}">Deprecated since {{deprecatedSince}}</span>
+          {{/if}}
         </td>
         <td>
           <div class="markdown">{{{description}}}</div>