From: Teryk Bellahsene Date: Fri, 15 Jan 2016 15:10:57 +0000 (+0100) Subject: SONAR-7135 WS api/measures/component_tree describe best value algorithm X-Git-Tag: 5.4-M8~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=13759e254c6b78fbd36957c95707e2cd9214fd15;p=sonarqube.git SONAR-7135 WS api/measures/component_tree describe best value algorithm --- diff --git a/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java b/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java index 8ff8bc13e08..8d4d970807f 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java +++ b/server/sonar-server/src/main/java/org/sonar/server/measure/ws/ComponentTreeAction.java @@ -53,6 +53,22 @@ import static org.sonarqube.ws.client.measure.MeasuresWsParameters.PARAM_METRIC_ import static org.sonarqube.ws.client.measure.MeasuresWsParameters.PARAM_QUALIFIERS; import static org.sonarqube.ws.client.measure.MeasuresWsParameters.PARAM_STRATEGY; +/** + *

Navigate through components based on different strategy with specified measures. + * To limit the number of rows in database, a best value algorithm exists in database.

+ * A measure is not stored in database if: + * + * To recreate a best value 2 different cases: + * + */ public class ComponentTreeAction implements MeasuresWsAction { private static final int MAX_SIZE = 500; static final String ALL_STRATEGY = "all";