Skip to content

Commit

Permalink
Bump pyxform-medic version to latest
Browse files Browse the repository at this point in the history
* bump pyxform to pull in latest changes
* update travis config to include new pyxform
* update form conversion tests in line with pyxform changes
  • Loading branch information
alxndrsn committed Oct 18, 2018
1 parent bf033fa commit 5642a82
Show file tree
Hide file tree
Showing 22 changed files with 6,539 additions and 7,290 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ matrix:
env: TZ='Etc/GMT+12'
install:
- "pip install --user -U pip"
- "pip install --user git+https://github.com/medic/pyxform.git@medic-conf-1.5#egg=pyxform-medic"
- "pip install --user git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic"
before_script:
- "! grep -Fq '.only(' test/**/*.spec.js"
- npm install
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Changelog

## v1.17.10
* Bump pyxform-medic version to latest
* Change switch statement formatting
* Updates package to AGPL license
* Creates AGPL license file

## v1.17.9
* Add support for contacts and reports for all nools workflows
* Releasing 1.17.9
* Add support for contacts and reports for all nools workflows (#81)
* Replaces the CouchDB port with default API port
* Replaces the CouchDB port with default API port
* Add tests for scheduled_tasks-based nools task generation
Expand Down Expand Up @@ -606,3 +613,4 @@
## v1.0.0
* Add `-beta` suffix to package name before uploading to NPM
* Allow setting of internalId field, but include deprecation warning

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ Medic Project Configurer
## Ubuntu

npm install -g medic-conf
sudo python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.5#egg=pyxform-medic
sudo python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic

## OSX

npm install -g medic-conf
pip install git+https://github.com/medic/pyxform.git@medic-conf-1.5#egg=pyxform-medic
pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic

## Windows

As Administrator:

npm install -g medic-conf
python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.5#egg=pyxform-medic --upgrade
python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic --upgrade

## Bash completion

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-conf",
"version": "1.17.9",
"version": "1.17.10",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions src/lib/convert-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const XLS2XFORM = 'xls2xform-medic';
const INSTALLATION_INSTRUCTIONS = `\nE To install the latest pyxform, try one of the following:
E
E Ubuntu
E sudo python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.5#egg=pyxform-medic
E sudo python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic
E OSX
E pip install git+https://github.com/medic/pyxform.git@medic-conf-1.5#egg=pyxform-medic
E pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic
E Windows (as Administrator)
E python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.5#egg=pyxform-medic --upgrade`;
E python -m pip install git+https://github.com/medic/pyxform.git@medic-conf-1.17#egg=pyxform-medic --upgrade`;
const UPDATE_INSTRUCTIONS = `\nE To remove the old version of pyxform:
E
E pip uninstall pyxform-medic
Expand Down
864 changes: 432 additions & 432 deletions test/data/convert-app-forms/forms/app/delivery.expected.xml

Large diffs are not rendered by default.

2,792 changes: 1,396 additions & 1,396 deletions test/data/convert-app-forms/forms/app/immunization_visit.expected.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion test/data/convert-app-forms/forms/app/off.expected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<send_note/>
<chw_note/>
</group_note>
<meta>
<meta tag="hidden">
<instanceID/>
</meta>
</off>
Expand Down
2 changes: 1 addition & 1 deletion test/data/convert-app-forms/forms/app/on.expected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<send_note/>
<chw_note/>
</group_note>
<meta>
<meta tag="hidden">
<instanceID/>
</meta>
</on>
Expand Down
1,430 changes: 715 additions & 715 deletions test/data/convert-app-forms/forms/app/postnatal_visit.expected.xml

Large diffs are not rendered by default.

1,268 changes: 634 additions & 634 deletions test/data/convert-app-forms/forms/app/pregnancy.expected.xml

Large diffs are not rendered by default.

848 changes: 424 additions & 424 deletions test/data/convert-app-forms/forms/app/pregnancy_visit.expected.xml

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions test/data/convert-collect-forms/forms/collect/f.expected.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,42 @@
<model>
<itext>
<translation lang="Bahasa Indonesia (Indonesian)">
<text id="/f/id:label">
<value>Pasien ID</value>
</text>
<text id="/f/n:label">
<value>Notes</value>
</text>
<text id="/f/review:label">
<value>Submitting danger sign report for ID <output value=" /f/id "/>, with the following notes: <output value=" /f/n "/></value></text>
</translation>
<translation default="true()" lang="English">
<text id="/f/id:label">
<value>Pasien ID</value>
<value>Patient ID</value>
</text>
</translation>
<translation lang="हिन्दी (Hindi)">
<text id="/f/n:label">
<value>Notes</value>
</text>
<text id="/f/review:label">
<value>Submitting danger sign report for ID <output value=" /f/id "/>, with the following notes: <output value=" /f/n "/></value></text>
</translation>
<translation lang="हिन्दी (Hindi)">
<text id="/f/id:label">
<value>मरीज का ID</value>
</text>
</translation>
<translation default="true()" lang="English">
<text id="/f/n:label">
<value>Notes</value>
</text>
<text id="/f/review:label">
<value>Submitting danger sign report for ID <output value=" /f/id "/>, with the following notes: <output value=" /f/n "/></value></text>
<text id="/f/id:label">
<value>Patient ID</value>
</text>
</translation>
</itext>
<instance>
<f delimiter="#" id="f" prefix="J1!f!" version="2017-08-12_06-44">
<id/>
<n/>
<review/>
<meta>
<meta tag="hidden">
<instanceID/>
</meta>
</f>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<name/>
</contact>
<contact_notes/>
<meta>
<meta tag="hidden">
<instanceID/>
</meta>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<phone/>
<alternate_phone/>
</person>
<meta>
<meta tag="hidden">
<instanceID/>
</meta>
</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<sex/>
<geolocation/>
</person>
<meta>
<meta tag="hidden">
<instanceID/>
</meta>
</data>
Expand Down
Loading

0 comments on commit 5642a82

Please sign in to comment.