Skip to content

Commit 20946a6

Browse files
authored
Merge pull request #1506 from dimagi/masterToFormplayer2.60
Master to formplayer (2.61)
2 parents e170f4a + 5ce1d38 commit 20946a6

43 files changed

Lines changed: 1529 additions & 219 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ updates:
66
interval: daily
77
labels:
88
- dependencies
9+
10+
# Copy of above config for formplayer
11+
- package-ecosystem: gradle
12+
directory: "/"
13+
target-branch: "formplayer"
14+
schedule:
15+
interval: daily
16+
labels:
17+
- dependencies

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
JAVA_VERSION: '17'
18-
JOB_GRADLE_VERSION: 7.3
18+
JOB_GRADLE_VERSION: 8.1
1919
FORMPLAYER_GRADLE_VERSION: 8.1
2020
FORMPLAYER_JAVA_VERSION: '17'
2121
steps:

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ plugins {
1414

1515
// Needed even though it looks unused
1616
sourceCompatibility = JavaVersion.VERSION_17
17+
targetCompatibility = JavaVersion.VERSION_17
1718

1819
configurations {
1920
ccapi.extendsFrom(ccapiImplementation)
@@ -74,7 +75,7 @@ dependencies {
7475
implementation 'commons-cli:commons-cli:1.3.1'
7576
implementation 'joda-time:joda-time:2.12.1'
7677
implementation 'com.carrotsearch:hppc:0.9.1'
77-
api 'com.squareup.retrofit2:retrofit:2.3.0'
78+
api 'com.squareup.retrofit2:retrofit:2.9.0'
7879
api 'com.squareup.okhttp3:okhttp:4.11.0'
7980
implementation 'com.google.code.findbugs:jsr305:3.0.2'
8081
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
@@ -88,7 +89,7 @@ dependencies {
8889
cliImplementation 'commons-cli:commons-cli:1.3.1'
8990
cliImplementation 'joda-time:joda-time:2.9.4'
9091
cliImplementation 'io.reactivex.rxjava2:rxjava:2.1.1'
91-
cliImplementation 'com.squareup.retrofit2:retrofit:2.3.0'
92+
cliImplementation 'com.squareup.retrofit2:retrofit:2.9.0'
9293
cliImplementation 'com.squareup.okhttp3:okhttp:4.11.0'
9394
cliImplementation 'com.google.guava:guava:31.1-jre'
9495
cliImplementation 'com.datadoghq:dd-trace-api:1.10.0'
@@ -101,7 +102,7 @@ dependencies {
101102
testImplementation 'org.json:json:20250517'
102103
testImplementation 'org.xerial:sqlite-jdbc:3.40.0.0'
103104
testImplementation 'joda-time:joda-time:2.9.4'
104-
testImplementation 'com.squareup.retrofit2:retrofit:2.3.0'
105+
testImplementation 'com.squareup.retrofit2:retrofit:2.9.0'
105106
testImplementation 'com.squareup.okhttp3:okhttp:4.11.0'
106107
testImplementation 'com.google.guava:guava:31.1-jre'
107108

@@ -112,7 +113,7 @@ dependencies {
112113
ccapiImplementation 'joda-time:joda-time:2.9.4'
113114
ccapiImplementation 'com.carrotsearch:hppc:0.9.1'
114115
ccapiImplementation 'io.reactivex.rxjava2:rxjava:2.1.1'
115-
ccapiImplementation "com.squareup.retrofit2:retrofit:2.3.0"
116+
ccapiImplementation "com.squareup.retrofit2:retrofit:2.9.0"
116117
ccapiImplementation 'com.squareup.okhttp3:okhttp:4.11.0'
117118
ccapiImplementation 'com.google.guava:guava:31.1-jre'
118119
ccapiImplementation 'io.opentracing:opentracing-api:0.33.0'
@@ -126,7 +127,7 @@ dependencies {
126127
translateImplementation 'joda-time:joda-time:2.9.4'
127128
translateImplementation 'org.json:json:20250517'
128129
translateImplementation 'io.reactivex.rxjava2:rxjava:2.1.1'
129-
translateImplementation "com.squareup.retrofit2:retrofit:2.3.0"
130+
translateImplementation "com.squareup.retrofit2:retrofit:2.9.0"
130131
translateImplementation 'com.squareup.okhttp3:okhttp:4.11.0'
131132
translateImplementation 'com.google.guava:guava:31.1-jre'
132133

src/cli/java/org/commcare/util/cli/CliMain.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,13 @@ public static void main(String[] args) {
6161
return;
6262
}
6363

64-
cliCommand.handle();
64+
try {
65+
cliCommand.handle();
66+
} catch (Exception e) {
67+
System.err.println("\nCommand failed with error:");
68+
e.printStackTrace();
69+
System.exit(-1);
70+
}
6571
}
6672

6773
private static CliCommand getCliCommand(String commandName) throws CliCommandNotFound {

src/cli/java/org/commcare/util/screen/EntityScreen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ public boolean initReferences(SessionWrapper session) throws CommCareSessionExce
188188
}
189189
}
190190
}
191+
191192
initialized = true;
192193
return true;
193194
}

src/cli/java/org/commcare/util/screen/EntityScreenHelper.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package org.commcare.util.screen;
22

3-
import org.commcare.cases.entity.AsyncEntity;
43
import org.commcare.cases.entity.AsyncNodeEntityFactory;
54
import org.commcare.cases.entity.Entity;
65
import org.commcare.cases.entity.EntitySortNotificationInterface;
76
import org.commcare.cases.entity.EntitySorter;
8-
import org.commcare.cases.entity.EntityStorageCache;
97
import org.commcare.cases.entity.EntityStringFilterer;
108
import org.commcare.cases.entity.NodeEntityFactory;
119
import org.commcare.suite.model.Detail;
@@ -16,7 +14,6 @@
1614
import java.util.Collections;
1715
import java.util.Comparator;
1816
import java.util.HashMap;
19-
import java.util.Hashtable;
2017
import java.util.List;
2118
import java.util.Map;
2219

@@ -38,7 +35,7 @@ public static List<Entity<TreeReference>> initEntities(EvaluationContext context
3835
EntityScreenContext entityScreenContext, TreeReference[] entitiesRefs) {
3936
NodeEntityFactory nodeEntityFactory;
4037
if (detail.isLazyLoading()) {
41-
nodeEntityFactory = new AsyncNodeEntityFactory(detail, context, null);
38+
nodeEntityFactory = new AsyncNodeEntityFactory(detail, context, null, false);
4239
} else {
4340
nodeEntityFactory = new NodeEntityFactory(detail, context);
4441
}

0 commit comments

Comments
 (0)