dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #39250
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19889: Data value import, set preheat cache to false by default
------------------------------------------------------------
revno: 19889
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Sun 2015-08-30 19:58:42 +0200
message:
Data value import, set preheat cache to false by default
modified:
dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/common/ImportOptions.java
dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.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-dxf2/src/main/java/org/hisp/dhis/dxf2/common/ImportOptions.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/common/ImportOptions.java 2015-08-30 17:45:53 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/main/java/org/hisp/dhis/dxf2/common/ImportOptions.java 2015-08-30 17:58:42 +0000
@@ -46,7 +46,7 @@
public class ImportOptions
{
private static final ImportOptions DEFAULT_OPTIONS = new ImportOptions().
- setDataElementIdScheme( UID ).setOrgUnitIdScheme( UID ).setPreheatCache( true ).setImportStrategy( ImportStrategy.NEW_AND_UPDATES );
+ setDataElementIdScheme( UID ).setOrgUnitIdScheme( UID ).setImportStrategy( ImportStrategy.NEW_AND_UPDATES );
private IdentifiableProperty idScheme;
@@ -56,7 +56,7 @@
private boolean dryRun;
- private boolean preheatCache = true;
+ private boolean preheatCache;
private boolean async;
=== modified file 'dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.java'
--- dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.java 2015-08-30 17:45:53 +0000
+++ dhis-2/dhis-services/dhis-service-dxf2/src/test/java/org/hisp/dhis/dxf2/datavalueset/DataValueSetServiceTest.java 2015-08-30 17:58:42 +0000
@@ -307,7 +307,7 @@
}
@Test
- public void testImportDataValuesXmlWithCodePreheatCacheFalseB()
+ public void testImportDataValuesXmlWithCodePreheatCacheFalse()
throws Exception
{
in = new ClassPathResource( "datavalueset/dataValueSetBcode.xml" ).getInputStream();
@@ -324,7 +324,7 @@
assertImportDataValues( summary );
}
-
+
@Test
public void testImportDataValuesCsv()
throws Exception