dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #30977
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 15752: Analytics, respecting unlimited max records
------------------------------------------------------------
revno: 15752
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2014-06-18 17:37:44 +0200
message:
Analytics, respecting unlimited max records
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.java 2014-04-30 17:30:27 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultQueryPlanner.java 2014-06-18 15:37:44 +0000
@@ -143,7 +143,7 @@
violation = "Category option combos cannot be specified as filter";
}
- if ( !params.isIgnoreLimit() && params.getNumberOfDimensionOptionPermutations() > getMaxLimit() )
+ if ( !params.isIgnoreLimit() && getMaxLimit() > 0 && params.getNumberOfDimensionOptionPermutations() > getMaxLimit() )
{
violation = "Table exceeds max number of cells: " + getMaxLimit() + " (" + params.getNumberOfDimensionOptionPermutations() + ")";
}
@@ -717,7 +717,7 @@
}
/**
- * Returns the max records limit.
+ * Returns the max records limit. 0 indicates no limit.
*/
private int getMaxLimit()
{