Skip to content

Commit

Permalink
Merge pull request #1515 from dhis2/master-dev
Browse files Browse the repository at this point in the history
fix: [MASTER-DEV] Version 1.3.2
  • Loading branch information
vgarciabnz authored Mar 22, 2021
2 parents 03cefea + 5e44e65 commit b87954c
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 11 deletions.
4 changes: 2 additions & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ ext {
buildToolsVersion: "29.0.3",
minSdkVersion : 19,
targetSdkVersion : 29,
versionCode : 231,
versionName : "1.3.1"
versionCode : 232,
versionName : "1.3.2"
]

libraries = [
Expand Down
4 changes: 2 additions & 2 deletions core/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
# Properties which are consumed by plugins/gradle-mvn-push.gradle plugin.
# They are used for publishing artifact to snapshot repository.

VERSION_NAME=1.3.1
VERSION_CODE=231
VERSION_NAME=1.3.2
VERSION_CODE=232

GROUP=org.hisp.dhis

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ private List<TeiQuery.Builder> queryPerProgram(ProgramDataDownloadParams params,
if (params.orgUnits().size() > 0) {
ouMode = OrganisationUnitMode.SELECTED;
orgUnits = params.orgUnits();
} else if (params.uids().size() > 0) {
ouMode = OrganisationUnitMode.ACCESSIBLE;
orgUnits = Collections.emptyList();
} else if (hasLimitByOrgUnit) {
ouMode = OrganisationUnitMode.SELECTED;
orgUnits = getLinkedCaptureOrgUnitUids(programUid);
Expand All @@ -146,7 +149,7 @@ private List<TeiQuery.Builder> queryPerProgram(ProgramDataDownloadParams params,

List<TeiQuery.Builder> builders = new ArrayList<>();

if (hasLimitByOrgUnit) {
if (hasLimitByOrgUnit && !orgUnits.isEmpty()) {
for (String orgUnitUid : orgUnits) {
builders.add(getBuilderFor(lastUpdated, Collections.singletonList(orgUnitUid), ouMode, params, limit)
.program(programUid).programStatus(programStatus).programStartDate(programStartDate));
Expand Down Expand Up @@ -177,6 +180,9 @@ private List<TeiQuery.Builder> queryGlobal(ProgramDataDownloadParams params,
if (params.orgUnits().size() > 0) {
ouMode = OrganisationUnitMode.SELECTED;
orgUnits = params.orgUnits();
} else if (params.uids().size() > 0) {
ouMode = OrganisationUnitMode.ACCESSIBLE;
orgUnits = Collections.emptyList();
} else if (hasLimitByOrgUnit) {
ouMode = OrganisationUnitMode.SELECTED;
orgUnits = getCaptureOrgUnitUids();
Expand All @@ -187,7 +193,7 @@ private List<TeiQuery.Builder> queryGlobal(ProgramDataDownloadParams params,

List<TeiQuery.Builder> builders = new ArrayList<>();

if (hasLimitByOrgUnit) {
if (hasLimitByOrgUnit && !orgUnits.isEmpty()) {
for (String orgUnitUid : orgUnits) {
builders.add(getBuilderFor(lastUpdated, Collections.singletonList(orgUnitUid), ouMode, params, limit));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ private List<TrackedEntityInstance> queryTrackedEntityInstances(TrackedEntityIns
String assignedUserModeStr = query.assignedUserMode() == null ? null : query.assignedUserMode().toString();
String enrollmentStatus = query.enrollmentStatus() == null ? null : query.enrollmentStatus().toString();
String eventStatus = query.eventStatus() == null ? null : query.eventStatus().toString();
String orgUnits = query.orgUnits().isEmpty() ? null :
CollectionsHelper.joinCollectionWithSeparator(query.orgUnits(), ";");

String orgUnits = CollectionsHelper.joinCollectionWithSeparator(query.orgUnits(), ";");
Call<SearchGrid> searchGridCall = service.query(orgUnits, orgUnitModeStr, query.program(),
query.formattedProgramStartDate(), query.formattedProgramEndDate(), enrollmentStatus,
query.formattedEventStartDate(), query.formattedEventEndDate(), eventStatus,
Expand Down
1 change: 1 addition & 0 deletions docs/content/developer/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Compatibility table between DHIS2 Android SDK library, DHIS2 core and Android SD
| 1.2.1 | 2.29 -> 2.34 | 19 - 28 |
| 1.3.0 | 2.29 -> 2.35 | 19 - 29 |
| 1.3.1 | 2.29 -> 2.35 | 19 - 29 |
| 1.3.2 | 2.29 -> 2.35 | 19 - 29 |
2 changes: 1 addition & 1 deletion docs/content/developer/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Include dependency in build.gradle.

```gradle
dependencies {
implementation "org.hisp.dhis:android-core:1.3.1"
implementation "org.hisp.dhis:android-core:1.3.2"
...
}
```
Expand Down
6 changes: 5 additions & 1 deletion docs/content/developer/known-issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@

## Data set completion

- In DHIS2 version 2.33.0 and 2.33.1, if a dataset is mark as uncompleted in the server, this value is not updated in the SDK. In those versions the API did not expose enough information to know if the status was complete or uncomplete.
- In DHIS2 version 2.33.0 and 2.33.1, if a dataset is mark as uncompleted in the server, this value is not updated in the SDK. In those versions the API did not expose enough information to know if the status was complete or uncomplete.

## Tracker relationships

- In DHIS2 version 2.35.1, TEI relationships might fail to be downloaded at data sync.
4 changes: 2 additions & 2 deletions docs/dhis2_android_sdk_developer_guide_INDEX.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ title: 'DHIS 2 Android SDK Developer Guide'
author: 'DHIS 2'
date:
year: 2021
month: January
month: March
keywords: [DHIS2, Android]
commit:
version: master
applicable_txt: 'Applicable to version 1.3.1'
applicable_txt: 'Applicable to version 1.3.2'
---
<!--DHIS2-SECTION-ID:index-->

Expand Down

0 comments on commit b87954c

Please sign in to comment.