Skip to content

Commit 49d25fe

Browse files
Merge pull request #636 from opensrp/feature/update_version
Update versions
2 parents 55c1271 + 9a1f2c8 commit 49d25fe

File tree

13 files changed

+83
-89
lines changed

13 files changed

+83
-89
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: 'OpenSRP web new Feature request.'
3+
description: 'Use this to request for a new feature that is not available in the current application.'
4+
title: '[New Feature Request] '
5+
labels: ['New Feature Request']
6+
assignees: '[]'
7+
---
8+
body:
9+
- type: markdown
10+
- type: textarea
11+
id: project
12+
attributes:
13+
label: Project Details
14+
description: What project requires this feature?
15+
placeholder: ZEIR or WHO ANC
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: use_case
20+
attributes:
21+
label: Feature Use Case
22+
description: Give a detailed use case of how this feature is to be used?
23+
placeholder: Needed to dispaly what teams practitioners are assigned to
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: acceptance_criteria
28+
attributes:
29+
label: Acceptance criteria
30+
description: What is the acceptance criteria for this feature?
31+
placeholder: Team assignments should be shown on the user details page.
32+
validations:
33+
required: true
34+
- type: input
35+
id: project_contact
36+
attributes:
37+
label: Project Contact
38+
description: Who is project contact person?
39+
placeholder: Benjamin
40+
validations:
41+
required: true
42+
- type: textarea
43+
id: extra_info
44+
attributes:
45+
label: Relevant Information
46+
description: Please share any other relevant information about the feature request or project.
47+
placeholder:
48+
validations:
49+
required: false
50+
51+
---

opensrp-anc/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
dependencies {
77
classpath 'com.android.tools.build:gradle:4.1.3'
88
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.3'
9-
classpath 'com.google.gms:google-services:4.3.9'
9+
classpath 'com.google.gms:google-services:4.3.10'
1010
}
1111
}
1212

@@ -152,7 +152,7 @@ tasks.withType(Test) {
152152

153153
dependencies {
154154
implementation 'androidx.appcompat:appcompat:1.3.1'
155-
implementation('org.smartregister:opensrp-client-native-form:2.0.10-SNAPSHOT@aar') {
155+
implementation('org.smartregister:opensrp-client-native-form:2.1.7-SNAPSHOT@aar') {
156156
transitive = true
157157
exclude group: 'com.android.support', module: 'recyclerview-v7'
158158
exclude group: 'com.android.support', module: 'appcompat-v7'
@@ -163,7 +163,7 @@ dependencies {
163163
exclude group: 'org.yaml', module: 'snakeyaml'
164164
exclude group: 'io.ona.rdt-capture', module: 'lib'
165165
}
166-
implementation('org.smartregister:opensrp-client-core:4.3.16000-SNAPSHOT@aar') {
166+
implementation('org.smartregister:opensrp-client-core:4.3.17-SNAPSHOT@aar') {
167167
transitive = true
168168
exclude group: 'com.github.bmelnychuk', module: 'atv'
169169
exclude group: 'com.google.guava', module: 'guava'

opensrp-anc/src/main/assets/json.form/anc_quick_check.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"validate_on_submit": true,
33
"display_scroll_bars": true,
44
"count": "1",
5-
"encounter_type": "Quick Check",
5+
"encounter_type": "Quick Check -- Training",
66
"entity_id": "",
77
"relational_id": "",
8-
"form_version": "0.0.1",
8+
"form_version": "0.0.6",
99
"metadata": {
1010
"start": {
1111
"openmrs_entity_parent": "",
@@ -119,7 +119,7 @@
119119
"openmrs_entity": "concept",
120120
"openmrs_entity_id": ""
121121
},
122-
{
122+
{
123123
"key": "changes_in_bp_down",
124124
"text": "{{anc_quick_check.step1.specific_complaint.options.changes_in_bp_down.text}}",
125125
"value": false,
@@ -151,7 +151,7 @@
151151
"openmrs_entity": "concept",
152152
"openmrs_entity_id": "143264AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
153153
},
154-
{
154+
{
155155
"key": "diarrhea",
156156
"text": "{{anc_quick_check.step1.specific_complaint.options.diarrhea.text}}",
157157
"value": false,
@@ -423,7 +423,7 @@
423423
"openmrs_entity": "concept",
424424
"openmrs_entity_id": "123074AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
425425
},
426-
{
426+
{
427427
"key": "vomiting",
428428
"text": "{{anc_quick_check.step1.specific_complaint.options.vomiting.text}}",
429429
"value": false,

opensrp-anc/src/main/assets/json.form/anc_register.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -350,12 +350,12 @@
350350
"err": "{{anc_register.step1.alt_phone_number.v_numeric.err}}"
351351
}
352352
},
353-
{
353+
{
354354
"key": "cohabitants",
355355
"openmrs_entity_parent": "",
356356
"openmrs_entity": "concept",
357357
"openmrs_entity_id": "159635AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
358-
"label":"{{anc_register.step1.cohabitants.label}}",
358+
"label": "{{anc_register.step1.cohabitants.label}}",
359359
"label_info_text": "{{anc_register.step1.cohabitants.label_info_text}}",
360360
"type": "check_box",
361361
"exclusive": [
@@ -371,7 +371,7 @@
371371
"openmrs_entity": "",
372372
"openmrs_entity_id": ""
373373
},
374-
{
374+
{
375375
"key": "siblings",
376376
"text": "{{anc_register.step1.cohabitants.options.siblings.text}}",
377377
"text_size": "18px",
@@ -380,7 +380,7 @@
380380
"openmrs_entity": "",
381381
"openmrs_entity_id": ""
382382
},
383-
{
383+
{
384384
"key": "extended_family",
385385
"text": "{{anc_register.step1.cohabitants.options.extended_family.text}}",
386386
"text_size": "18px",
@@ -389,7 +389,7 @@
389389
"openmrs_entity": "",
390390
"openmrs_entity_id": ""
391391
},
392-
{
392+
{
393393
"key": "partner",
394394
"text": "{{anc_register.step1.cohabitants.options.partner.text}}",
395395
"text_size": "18px",
@@ -398,7 +398,7 @@
398398
"openmrs_entity": "",
399399
"openmrs_entity_id": ""
400400
},
401-
{
401+
{
402402
"key": "friends",
403403
"text": "{{anc_register.step1.cohabitants.options.friends.text}}",
404404
"text_size": "18px",
@@ -407,7 +407,7 @@
407407
"openmrs_entity": "",
408408
"openmrs_entity_id": ""
409409
},
410-
{
410+
{
411411
"key": "no_one",
412412
"text": "{{anc_register.step1.cohabitants.options.no_one.text}}",
413413
"text_size": "18px",

opensrp-anc/src/main/java/org/smartregister/anc/library/activity/BaseHomeRegisterActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ public void startFormActivity(JSONObject form) {
209209

210210
@Override
211211
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
212+
super.onActivityResult(requestCode, resultCode, data);
212213
if (requestCode == AllConstants.BARCODE.BARCODE_REQUEST_CODE && resultCode == Activity.RESULT_OK) {
213214
if (data != null) {
214215
Barcode barcode = data.getParcelableExtra(AllConstants.BARCODE.BARCODE_KEY);

opensrp-anc/src/main/java/org/smartregister/anc/library/activity/ContactJsonFormActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import com.vijay.jsonwizard.domain.Form;
1616
import com.vijay.jsonwizard.fragments.JsonWizardFormFragment;
1717

18+
import org.apache.commons.lang3.StringUtils;
1819
import org.json.JSONArray;
1920
import org.json.JSONException;
2021
import org.json.JSONObject;
@@ -126,7 +127,7 @@ protected void checkBoxWriteValue(String stepName, String parentKey, String chil
126127

127128
if (childKey.equals(anotherKeyAtIndex)) {
128129
innerItem.put(JsonFormConstants.VALUE, value);
129-
if (!TextUtils.isEmpty(formName) && formName.equals(ConstantsUtils.JsonFormUtils.ANC_QUICK_CHECK)) {
130+
if (StringUtils.isNotBlank(formName) && formName.equals(ConstantsUtils.JsonFormUtils.ANC_QUICK_CHECK)) {
130131
quickCheckDangerSignsSelectionHandler(fields);
131132
}
132133

opensrp-anc/src/main/java/org/smartregister/anc/library/fragment/ContactWizardJsonFormFragment.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -297,19 +297,14 @@ public void displayQuickCheckBottomReferralButtons(boolean none, boolean other)
297297

298298
Button finalReferButton = referButton;
299299
Button finalProceedButton = proceedButton;
300-
getJsonApi().getAppExecutors().mainThread().execute(new Runnable() {
301-
@Override
302-
public void run() {
303-
setQuickCheckButtonsVisible(none, other, buttonLayout, finalReferButton, finalProceedButton);
304-
setQuickCheckButtonsInvisible(none, other, buttonLayout, finalReferButton, finalProceedButton);
305-
306-
if ((none && !other) && buttonLayout != null) {
307-
finalReferButton.setVisibility(View.GONE);
308-
}
300+
getJsonApi().getAppExecutors().mainThread().execute(() -> {
301+
setQuickCheckButtonsVisible(none, other, buttonLayout, finalReferButton, finalProceedButton);
302+
setQuickCheckButtonsInvisible(none, other, buttonLayout, finalReferButton, finalProceedButton);
303+
304+
if ((none && !other) && buttonLayout != null) {
305+
finalReferButton.setVisibility(View.GONE);
309306
}
310307
});
311-
312-
313308
}
314309

315310

opensrp-anc/src/main/java/org/smartregister/anc/library/sync/BaseAncClientProcessorForJava.java

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -118,56 +118,6 @@ private boolean unSync(ECSyncHelper ecSyncHelper, DetailsRepository detailsRepos
118118
return false;
119119
}
120120

121-
/*
122-
private Integer parseInt(String string) {
123-
try {
124-
return Integer.valueOf(string);
125-
} catch (NumberFormatException e) {
126-
Log.e(TAG, e.toString(), e);
127-
}
128-
return null;
129-
}
130-
131-
private ContentValues processCaseModel(EventClient eventClient, Table table) {
132-
try {
133-
List<Column> columns = table.columns;
134-
ContentValues contentValues = new ContentValues();
135-
136-
for (Column column : columns) {
137-
processCaseModel(eventClient.getEvent(), eventClient.getClient(), column, contentValues);
138-
}
139-
140-
return contentValues;
141-
} catch (Exception e) {
142-
Log.e(TAG, e.toString(), e);
143-
}
144-
return null;
145-
}
146-
147-
private Date getDate(String eventDateStr) {
148-
Date date = null;
149-
if (StringUtils.isNotBlank(eventDateStr)) {
150-
try {
151-
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZZZZZ");
152-
date = dateFormat.parse(eventDateStr);
153-
} catch (ParseException e) {
154-
try {
155-
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
156-
date = dateFormat.parse(eventDateStr);
157-
} catch (ParseException pe) {
158-
try {
159-
date = DateUtil.parseDate(eventDateStr);
160-
} catch (ParseException pee) {
161-
Log.e(TAG, pee.toString(), pee);
162-
}
163-
}
164-
}
165-
}
166-
return date;
167-
}
168-
169-
*/
170-
171121
public DetailsRepository getDetailsRepository() {
172122
return AncLibrary.getInstance().getDetailsRepository();
173123
}

opensrp-anc/src/main/java/org/smartregister/anc/library/util/ANCJsonFormUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,6 @@ public static Map<String, String> processSiteCharacteristics(String jsonString)
763763
StringUtils.isBlank(fields.getJSONObject(i).getString(ConstantsUtils.KeyUtils.VALUE)) ? "0" :
764764
fields.getJSONObject(i).getString(ConstantsUtils.KeyUtils.VALUE));
765765
}
766-
767766
}
768767

769768
return settings;
@@ -777,7 +776,7 @@ public static String getAutoPopulatedSiteCharacteristicsEditFormString(Context c
777776
Map<String, String> characteristics) {
778777
try {
779778
JSONObject form = FormUtils.getInstance(context).getFormJson(ConstantsUtils.JsonFormUtils.ANC_SITE_CHARACTERISTICS);
780-
Timber.d("Form is " + form.toString());
779+
Timber.d("Form is %s", form.toString());
781780
if (form != null) {
782781
form.put(ANCJsonFormUtils.ENCOUNTER_TYPE, ConstantsUtils.EventTypeUtils.SITE_CHARACTERISTICS);
783782

opensrp-anc/src/main/res/layout/contact_card_item.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,5 @@
8989
android:textSize="@dimen/contact_detail_text_size" />
9090

9191
</LinearLayout>
92-
93-
9492
</RelativeLayout>
95-
9693
</org.smartregister.anc.library.view.SquareCardView>

0 commit comments

Comments
 (0)