Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tech5 Integration - Enrollment updates #2701

Merged
merged 23 commits into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ case_autoload.raw.case_missing=Unable to find case referenced by auto-select cas
case_autoload.raw.property_missing=The custom xpath expression specified for case auto-selecting could not be found: ${0}
case_autoload.user.case_missing=Unable to find case referenced by auto-select case ID.
case_autoload.user.property_missing=The user data key specified for case auto-selecting could not be found: ${0}
case_autoload.usercase.case_missing=Unable to find case referenced by auto-select case ID.
case_autoload.usercase.case_missing=This form affects the user case, but no user case id was found. Please contact your supervisor.
case_autoload.usercase.property_missing=The user case specified for case auto-selecting could not be found: ${0}
case_search.claimed_case.case_missing=Unable to find the selected case after performing a sync. Please try again.
case_sharing.exactly_one_group=The case sharing settings for your user are incorrect. This user must be in exactly one case sharing group. Please contact your supervisor.
cchq.case=Case
cchq.referral=Referral
Expand All @@ -23,9 +24,9 @@ cchq.report_name_header=Report Name
cchq.reports_last_updated_on=Reports last updated on
en=English
forms.m0f0=Registration Form
forms.m0f1=Registration with Templates
homescreen.title=Identity Integration Test
lang.current=en
m0.case_long.case_name_1.header=Name
m0.case_short.case_name_1.header=Name
modules.m0=Case List
usercase.missing_id=This form affects the user case, but no user case id was found. Please contact your supervisor.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cchq.report_menu=Reports
cchq.report_name_header=Report Name
cchq.reports_last_updated_on=Reports last updated on
forms.m0f0=Registration Form
forms.m0f1=Registration with Templates
homescreen.title=Identity Integration Test
lang.current=en
m0.case_long.case_name_1.header=Name
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version='1.0' encoding='UTF-8'?>
<suite version="10" descriptor="Media Suite File"/>
<suite version="24" descriptor="Media Suite File"/>
Original file line number Diff line number Diff line change
@@ -1,58 +1,91 @@
<h:html xmlns:h="http://www.w3.org/1999/xhtml" xmlns:orx="http://openrosa.org/jr/xforms" xmlns="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:vellum="http://commcarehq.org/xforms/vellum">
<h:head>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: diffs like this are very hard to review and should be avoided. Will you be able to highlight what's changed here with comments at the very least.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is confusing, do we have a practice around this? I just made the modification in HQ, downloaded the app and replaced the files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should only change the parts that changed. I generally edit the files by hand manually to add the new/modified parts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I undid this and followed your advice - e81b21b

<h:title>Registration Form</h:title>
<model>
<instance>
<data xmlns:jrm="http://dev.commcarehq.org/jr/xforms" xmlns="http://openrosa.org/formdesigner/39BBDBB3-7C04-472E-9D8F-DB640E63F466" uiVersion="1" version="15" name="Registration Form">
<question2/>
<duplicate_guid/>
<duplicate_score/>
<duplicate_strength/>
<identity_guid/>
<verification/>
<verify_guid/>
<verify_score/>
<verify_strength/>
<case xmlns="http://commcarehq.org/case/transaction/v2" case_id="" date_modified="" user_id=""><create><case_name/><owner_id/><case_type>case</case_type></create></case><orx:meta xmlns:cc="http://commcarehq.org/xforms"><orx:deviceID/><orx:timeStart/><orx:timeEnd/><orx:username/><orx:userID/><orx:instanceID/><cc:appVersion/><orx:drift/></orx:meta></data>
</instance><instance id="commcaresession" src="jr://instance/session"/>
<bind nodeset="/data/question2" type="intent"/>
<bind nodeset="/data/duplicate_guid"/>
<bind nodeset="/data/duplicate_score"/>
<bind nodeset="/data/duplicate_strength"/>
<bind nodeset="/data/identity_guid"/>
<bind nodeset="/data/verification" type="intent"/>
<bind nodeset="/data/verify_guid"/>
<bind nodeset="/data/verify_score"/>
<bind nodeset="/data/verify_strength"/>
<itext>
<translation lang="en" default="">
<text id="question2-label">
<value>Registration</value>
</text>
<text id="verification-label">
<value>Verification</value>
</text>
</translation>
</itext>
<bind calculate="/data/meta/timeEnd" nodeset="/data/case/@date_modified" type="xsd:dateTime"/><bind calculate="/data/meta/userID" nodeset="/data/case/@user_id"/><setvalue event="xforms-ready" ref="/data/case/@case_id" value="instance('commcaresession')/session/data/case_id_new_case_0"/><bind calculate="/data/question2" nodeset="/data/case/create/case_name"/><bind calculate="/data/meta/userID" nodeset="/data/case/create/owner_id"/><setvalue event="xforms-ready" ref="/data/meta/deviceID" value="instance('commcaresession')/session/context/deviceid"/><setvalue event="xforms-ready" ref="/data/meta/timeStart" value="now()"/><bind nodeset="/data/meta/timeStart" type="xsd:dateTime"/><setvalue event="xforms-revalidate" ref="/data/meta/timeEnd" value="now()"/><bind nodeset="/data/meta/timeEnd" type="xsd:dateTime"/><setvalue event="xforms-ready" ref="/data/meta/username" value="instance('commcaresession')/session/context/username"/><setvalue event="xforms-ready" ref="/data/meta/userID" value="instance('commcaresession')/session/context/userid"/><setvalue event="xforms-ready" ref="/data/meta/instanceID" value="uuid()"/><setvalue event="xforms-ready" ref="/data/meta/appVersion" value="instance('commcaresession')/session/context/appversion"/><setvalue event="xforms-revalidate" ref="/data/meta/drift" value="if(count(instance('commcaresession')/session/context/drift) = 1, instance('commcaresession')/session/context/drift, '')"/></model>
<odkx:intent xmlns:odkx="http://opendatakit.org/xforms" id="question2" class="org.commcare.identity.bioenroll">
<response key="guid" ref="/data/identity_guid"/>
<response key="match_guid" ref="/data/duplicate_guid"/>
<response key="match_confidence" ref="/data/duplicate_score"/>
<response key="match_strength" ref="/data/duplicate_strength"/>
</odkx:intent>
<odkx:intent xmlns:odkx="http://opendatakit.org/xforms" id="verification" class="org.commcare.identity.bioverify">
<response key="match_guid" ref="/data/verify_guid"/>
<response key="match_confidence" ref="/data/verify_score"/>
<response key="match_strength" ref="/data/verify_strength"/>
</odkx:intent>
</h:head>
<h:body>
<input ref="/data/question2" appearance="intent:question2">
<label ref="jr:itext('question2-label')"/>
</input>
<input ref="/data/verification" appearance="intent:verification">
<label ref="jr:itext('verification-label')"/>
</input>
</h:body>
</h:html>
<h:head>
<h:title>Registration Form</h:title>
<model>
<instance>
<data xmlns:jrm="http://dev.commcarehq.org/jr/xforms" xmlns="http://openrosa.org/formdesigner/39BBDBB3-7C04-472E-9D8F-DB640E63F466" uiVersion="1" version="24" name="Registration Form">
<question2/>
<duplicate_guid/>
<duplicate_score/>
<duplicate_strength/>
<identity_guid/>
<verification/>
<verify_guid/>
<verify_score/>
<verify_strength/>
<case xmlns="http://commcarehq.org/case/transaction/v2" case_id="" date_modified="" user_id="">
<create>
<case_name/>
<owner_id/>
<case_type>case</case_type>
</create>
</case>
<orx:meta xmlns:cc="http://commcarehq.org/xforms">
<orx:deviceID/>
<orx:timeStart/>
<orx:timeEnd/>
<orx:username/>
<orx:userID/>
<orx:instanceID/>
<cc:appVersion/>
<orx:drift/>
</orx:meta>
</data>
</instance>
<instance id="commcaresession" src="jr://instance/session"/>
<bind nodeset="/data/question2" type="intent" required="true()"/>
<bind nodeset="/data/duplicate_guid"/>
<bind nodeset="/data/duplicate_score"/>
<bind nodeset="/data/duplicate_strength"/>
<bind nodeset="/data/identity_guid"/>
<bind nodeset="/data/verification" type="intent"/>
<bind nodeset="/data/verify_guid"/>
<bind nodeset="/data/verify_score"/>
<bind nodeset="/data/verify_strength"/>
<itext>
<translation lang="en" default="">
<text id="question2-label">
<value>Register</value>
</text>
<text id="verification-label">
<value>Verification</value>
</text>
</translation>
</itext>
<bind nodeset="/data/case/@date_modified" type="xsd:dateTime" calculate="/data/meta/timeEnd"/>
<bind nodeset="/data/case/@user_id" calculate="/data/meta/userID"/>
<setvalue ref="/data/case/@case_id" value="instance('commcaresession')/session/data/case_id_new_case_0" event="xforms-ready"/>
<bind nodeset="/data/case/create/case_name" calculate="/data/question2"/>
<bind nodeset="/data/case/create/owner_id" calculate="/data/meta/userID"/>
<setvalue ref="/data/meta/deviceID" value="instance('commcaresession')/session/context/deviceid" event="xforms-ready"/>
<setvalue ref="/data/meta/timeStart" value="now()" event="xforms-ready"/>
<bind nodeset="/data/meta/timeStart" type="xsd:dateTime"/>
<setvalue ref="/data/meta/timeEnd" value="now()" event="xforms-revalidate"/>
<bind nodeset="/data/meta/timeEnd" type="xsd:dateTime"/>
<setvalue ref="/data/meta/username" value="instance('commcaresession')/session/context/username" event="xforms-ready"/>
<setvalue ref="/data/meta/userID" value="instance('commcaresession')/session/context/userid" event="xforms-ready"/>
<setvalue ref="/data/meta/instanceID" value="uuid()" event="xforms-ready"/>
<setvalue ref="/data/meta/appVersion" value="instance('commcaresession')/session/context/appversion" event="xforms-ready"/>
<setvalue ref="/data/meta/drift" value="if(count(instance('commcaresession')/session/context/drift) = 1, instance('commcaresession')/session/context/drift, '')" event="xforms-revalidate"/>
</model>
<odkx:intent xmlns:odkx="http://opendatakit.org/xforms" id="question2" class="org.commcare.identity.bioenroll">
<response key="guid" ref="/data/identity_guid"/>
<response key="match_guid" ref="/data/duplicate_guid"/>
<response key="match_confidence" ref="/data/duplicate_score"/>
<response key="match_strength" ref="/data/duplicate_strength"/>
</odkx:intent>
<odkx:intent xmlns:odkx="http://opendatakit.org/xforms" id="verification" class="org.commcare.identity.bioverify">
<response key="match_guid" ref="/data/verify_guid"/>
<response key="match_confidence" ref="/data/verify_score"/>
<response key="match_strength" ref="/data/verify_strength"/>
</odkx:intent>
</h:head>
<h:body>
<input ref="/data/question2" appearance="intent:question2">
<label ref="jr:itext('question2-label')"/>
</input>
<input ref="/data/verification" appearance="intent:verification">
<label ref="jr:itext('verification-label')"/>
</input>
</h:body>
</h:html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<h:html xmlns:h="http://www.w3.org/1999/xhtml" xmlns:orx="http://openrosa.org/jr/xforms" xmlns="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:vellum="http://commcarehq.org/xforms/vellum">
<h:head>
<h:title>Registration with Templates</h:title>
<model>
<instance>
<data xmlns:jrm="http://dev.commcarehq.org/jr/xforms" xmlns="http://openrosa.org/formdesigner/E3900AF4-43AC-435A-B0BB-E043AD9608A1" uiVersion="1" version="24" name="Registration with Templates">
<register/>
<guid/>
<templates/>
<case xmlns="http://commcarehq.org/case/transaction/v2" case_id="" date_modified="" user_id="">
<create>
<case_name/>
<owner_id/>
<case_type>case</case_type>
</create>
</case>
<orx:meta xmlns:cc="http://commcarehq.org/xforms">
<orx:deviceID/>
<orx:timeStart/>
<orx:timeEnd/>
<orx:username/>
<orx:userID/>
<orx:instanceID/>
<cc:appVersion/>
<orx:drift/>
</orx:meta>
</data>
</instance>
<instance id="commcaresession" src="jr://instance/session"/>
<bind nodeset="/data/register" type="intent" required="true()"/>
<bind nodeset="/data/guid"/>
<bind nodeset="/data/templates"/>
<itext>
<translation lang="en" default="">
<text id="register-label">
<value>Register</value>
</text>
</translation>
</itext>
<bind nodeset="/data/case/@date_modified" type="xsd:dateTime" calculate="/data/meta/timeEnd"/>
<bind nodeset="/data/case/@user_id" calculate="/data/meta/userID"/>
<setvalue ref="/data/case/@case_id" value="instance('commcaresession')/session/data/case_id_new_case_0" event="xforms-ready"/>
<bind nodeset="/data/case/create/case_name" calculate="/data/register"/>
<bind nodeset="/data/case/create/owner_id" calculate="/data/meta/userID"/>
<setvalue ref="/data/meta/deviceID" value="instance('commcaresession')/session/context/deviceid" event="xforms-ready"/>
<setvalue ref="/data/meta/timeStart" value="now()" event="xforms-ready"/>
<bind nodeset="/data/meta/timeStart" type="xsd:dateTime"/>
<setvalue ref="/data/meta/timeEnd" value="now()" event="xforms-revalidate"/>
<bind nodeset="/data/meta/timeEnd" type="xsd:dateTime"/>
<setvalue ref="/data/meta/username" value="instance('commcaresession')/session/context/username" event="xforms-ready"/>
<setvalue ref="/data/meta/userID" value="instance('commcaresession')/session/context/userid" event="xforms-ready"/>
<setvalue ref="/data/meta/instanceID" value="uuid()" event="xforms-ready"/>
<setvalue ref="/data/meta/appVersion" value="instance('commcaresession')/session/context/appversion" event="xforms-ready"/>
<setvalue ref="/data/meta/drift" value="if(count(instance('commcaresession')/session/context/drift) = 1, instance('commcaresession')/session/context/drift, '')" event="xforms-revalidate"/>
</model>
<odkx:intent xmlns:odkx="http://opendatakit.org/xforms" id="register" class="org.commcare.identity.bioenroll">
<response key="guid" ref="/data/guid"/>
<response key="templates" ref="/data/templates"/>
</odkx:intent>
</h:head>
<h:body>
<input ref="/data/register" appearance="intent:register">
<label ref="jr:itext('register-label')"/>
</input>
</h:body>
</h:html>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='UTF-8'?>
<profile version="10"
update="https://www.commcarehq.org/a/shubhamgoyaltest/apps/download/844a399d13204c2792e4f81ae878eb7e/media_profile.ccpr?latest=true&amp;profile=None"
<profile version="24"
update="https://www.commcarehq.org/a/shubhamgoyaltest/apps/download/4908aeeaceec4c0e8357028418db78f1/media_profile.ccpr?latest=true&amp;profile=None"
requiredMajor="2"
requiredMinor="49"
requiredMinimal="7"
Expand All @@ -11,16 +11,16 @@
<property key="BackupMode" value="file_mode" force="true"/>
<property key="backup-url" value="file:///E:/CommCare.Backup" force="true"/>
<property key="restore-url" value="file:///E:/CommCare.Backup" force="true"/>
<property key="ota-restore-url" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/restore/844a399d13204c2792e4f81ae878eb7e/" force="true"/>
<property key="ota-restore-url-testing" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/restore/844a399d13204c2792e4f81ae878eb7e/" force="true"/>
<property key="PostURL" value="https://www.commcarehq.org/a/shubhamgoyaltest/receiver/secure/844a399d13204c2792e4f81ae878eb7e/" force="true"/>
<property key="PostTestURL" value="https://www.commcarehq.org/a/shubhamgoyaltest/receiver/secure/844a399d13204c2792e4f81ae878eb7e/" force="true"/>
<property key="ota-restore-url" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/restore/4908aeeaceec4c0e8357028418db78f1/" force="true"/>
<property key="ota-restore-url-testing" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/restore/4908aeeaceec4c0e8357028418db78f1/" force="true"/>
<property key="PostURL" value="https://www.commcarehq.org/a/shubhamgoyaltest/receiver/secure/4908aeeaceec4c0e8357028418db78f1/" force="true"/>
<property key="PostTestURL" value="https://www.commcarehq.org/a/shubhamgoyaltest/receiver/secure/4908aeeaceec4c0e8357028418db78f1/" force="true"/>
<property key="key_server" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/keys/" force="true"/>
<property key="cur_locale" value="en" force="false"/>
<property key="cc_user_domain" value="shubhamgoyaltest.commcarehq.org" force="true"/>
<property key="jr_openrosa_api" value="1.0" force="true"/>

<property key="heartbeat-url" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/heartbeat/844a399d13204c2792e4f81ae878eb7e/?build_profile_id=" force="true"/>
<property key="heartbeat-url" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/heartbeat/4908aeeaceec4c0e8357028418db78f1/?build_profile_id=" force="true"/>



Expand All @@ -29,17 +29,11 @@

<property key="log_prop_weekly" value="log_short" force="true"/>

<property key="cc-user-mode" value="cc-u-normal" force="true"/>

<property key="cc-send-unsent" value="cc-su-auto" force="true"/>

<property key="extra_key_action" value="audio" force="true"/>

<property key="cc-show-saved" value="no" force="true"/>

<property key="cc-show-incomplete" value="no" force="true"/>

<property key="recovery-measures-url" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/recovery_measures/844a399d13204c2792e4f81ae878eb7e/" force="true"/>
<property key="recovery-measures-url" value="https://www.commcarehq.org/a/shubhamgoyaltest/phone/recovery_measures/4908aeeaceec4c0e8357028418db78f1/" force="true"/>


<!-- end -->
Expand All @@ -55,20 +49,21 @@

<users active="true">
</users>

</features>

<suite><resource id="suite" version="10">
<suite><resource id="suite" version="24">

<location authority="local">./suite.xml</location>

<location authority="remote">https://www.commcarehq.org/a/shubhamgoyaltest/apps/download/844a399d13204c2792e4f81ae878eb7e/suite.xml</location>
<location authority="remote">https://www.commcarehq.org/a/shubhamgoyaltest/apps/download/4908aeeaceec4c0e8357028418db78f1/suite.xml</location>
</resource></suite>

<suite><resource id="media-suite" version="10">
<suite><resource id="media-suite" version="24">

<location authority="local">./media_suite.xml</location>

<location authority="remote">https://www.commcarehq.org/a/shubhamgoyaltest/apps/download/844a399d13204c2792e4f81ae878eb7e/media_suite.xml</location>
<location authority="remote">https://www.commcarehq.org/a/shubhamgoyaltest/apps/download/4908aeeaceec4c0e8357028418db78f1/media_suite.xml</location>
</resource></suite>

</profile>
Loading