dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #34339
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 17625: Analytics, using data view with fallback to roots
------------------------------------------------------------
revno: 17625
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2014-11-30 16:45:17 +0100
message:
Analytics, using data view with fallback to roots
modified:
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java
dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/DefaultEventAnalyticsService.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/DefaultAnalyticsService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java 2014-11-26 13:15:09 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/DefaultAnalyticsService.java 2014-11-30 15:45:17 +0000
@@ -490,7 +490,7 @@
User user = currentUserService.getCurrentUser();
List<OrganisationUnit> organisationUnits = asTypedList( params.getDimensionOrFilter( ORGUNIT_DIM_ID ), OrganisationUnit.class );
- Collection<OrganisationUnit> roots = user != null ? user.getDataViewOrganisationUnitsWithFallback() : null;
+ Collection<OrganisationUnit> roots = user != null ? user.getDataViewOrganisationUnits() : null;
if ( params.isHierarchyMeta() )
{
=== modified file 'dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/DefaultEventAnalyticsService.java'
--- dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/DefaultEventAnalyticsService.java 2014-11-26 13:15:09 +0000
+++ dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/event/data/DefaultEventAnalyticsService.java 2014-11-30 15:45:17 +0000
@@ -228,7 +228,7 @@
User user = currentUserService.getCurrentUser();
- Collection<OrganisationUnit> roots = user != null ? user.getDataViewOrganisationUnitsWithFallback() : null;
+ Collection<OrganisationUnit> roots = user != null ? user.getDataViewOrganisationUnits() : null;
if ( params.isHierarchyMeta() )
{
@@ -319,7 +319,7 @@
User user = currentUserService.getCurrentUser();
- Collection<OrganisationUnit> roots = user != null ? user.getDataViewOrganisationUnitsWithFallback() : null;
+ Collection<OrganisationUnit> roots = user != null ? user.getDataViewOrganisationUnits() : null;
if ( params.isHierarchyMeta() )
{