From 13759e254c6b78fbd36957c95707e2cd9214fd15 Mon Sep 17 00:00:00 2001 From: Teryk Bellahsene Date: Fri, 15 Jan 2016 16:10:57 +0100 Subject: [PATCH] SONAR-7135 WS api/measures/component_tree describe best value algorithm --- .../server/measure/ws/ComponentTreeAction.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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"; -- 2.39.5