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

Sync with upstream to tag 2.018.48 #13

Open
wants to merge 621 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
621 commits
Select commit Hold shift + click to select a range
961f246
Merge pull request #1975 from kobotoolbox/1942-default-language-as-fi…
noliveleger Sep 5, 2018
aef5338
Send only subset of fields to remote Server for JSON hooks
noliveleger Sep 5, 2018
f178159
Refactoring: Changed 'filtered_fields' to 'subset_fields'
noliveleger Sep 6, 2018
59f367f
Refactoring: Changed 'filtered_fields' to 'subset_fields' - forgotten…
noliveleger Sep 6, 2018
7574c3e
user final prop name
magicznyleszek Sep 6, 2018
6a1cdc7
use final property name
magicznyleszek Sep 6, 2018
65c5107
Merge pull request #1973 from kobotoolbox/issue-1894
pmusaraj Sep 6, 2018
fabe4cf
Merge branch 'master' into translations-formtemplates-merge
magicznyleszek Sep 6, 2018
8b73383
fix after merge
magicznyleszek Sep 6, 2018
0c36180
Added XML parser for subset of fields
noliveleger Sep 6, 2018
0d5e38e
Merge branch 'rest_subset_fields' of github.com:kobotoolbox/kpi into …
noliveleger Sep 6, 2018
726e11f
lang settings modal default lang styles
magicznyleszek Sep 7, 2018
fb93458
update node-sass and webpack-dev-server to fix npm vulnerabilities
pmusaraj Sep 7, 2018
884d6dc
handle forms with languages without lang. code
pmusaraj Sep 7, 2018
4c27419
Added unittests for XML parsing
noliveleger Sep 7, 2018
eedac96
Updated json parser test
noliveleger Sep 7, 2018
c0c8cc2
Merged rest_email_notification branch into rest_subset_fields
noliveleger Sep 7, 2018
92ce1e4
Fixed bad merge
noliveleger Sep 7, 2018
1653cb5
Stop exposing asset_id in Hook Viewset
noliveleger Sep 7, 2018
b7a2e68
confirm prompt for default language change
magicznyleszek Sep 10, 2018
891227a
be more informative about unnamed translations error
magicznyleszek Sep 10, 2018
5bab4b8
reload asset after failed language update attempt
magicznyleszek Sep 10, 2018
6870675
display error notifications
magicznyleszek Sep 10, 2018
bb453c4
match any translated property
magicznyleszek Sep 10, 2018
554670f
handle multiple translatedProps
magicznyleszek Sep 10, 2018
296e0ff
change error message
magicznyleszek Sep 10, 2018
5db4246
remove dev fallbacks
magicznyleszek Sep 10, 2018
f00ac2c
add / to api calls
magicznyleszek Sep 10, 2018
16f3da8
Updated API doc
noliveleger Sep 10, 2018
5b5eb82
Merge branch 'rest_subset_fields' of github.com:kobotoolbox/kpi into …
noliveleger Sep 10, 2018
b028a5e
fix updating default lang
magicznyleszek Sep 11, 2018
13021cb
Merge branch 'master' into issue-1883
magicznyleszek Sep 11, 2018
8c4691c
bring back title editing in header
magicznyleszek Sep 11, 2018
338e9ac
whitespace fix
magicznyleszek Sep 11, 2018
8765613
more whitespace undo
magicznyleszek Sep 11, 2018
8687c41
styles undo
magicznyleszek Sep 11, 2018
026e736
more styles undo
magicznyleszek Sep 11, 2018
d42f788
missing var declaration
magicznyleszek Sep 11, 2018
d119f10
immediate title change with enter key
magicznyleszek Sep 11, 2018
83d0662
sort cans by abcs
magicznyleszek Sep 11, 2018
d7fafd8
Merge branch 'master' into REST-UI
magicznyleszek Sep 11, 2018
de28cd3
fix after merge
magicznyleszek Sep 11, 2018
014f018
update select
magicznyleszek Sep 11, 2018
663b46f
fix collection renaming bug
magicznyleszek Sep 11, 2018
e138852
add padding
magicznyleszek Sep 12, 2018
6d66d5a
allow more columns filtering WIP
magicznyleszek Sep 12, 2018
082da89
add more fields for text filter
magicznyleszek Sep 12, 2018
a2c1fe8
Merge branch 'master' into issue-1690
magicznyleszek Sep 12, 2018
28a8732
fix undeployed label
magicznyleszek Sep 12, 2018
08dcc47
use mongo's $in for _id
magicznyleszek Sep 12, 2018
30e37bd
Merge pull request #1991 from kobotoolbox/translations-further-changes
pmusaraj Sep 12, 2018
73d1637
improve error message
magicznyleszek Sep 13, 2018
acefb79
typo
magicznyleszek Sep 13, 2018
4603c5d
move nullify translations code to utils function
magicznyleszek Sep 13, 2018
570770a
fix error message test
magicznyleszek Sep 13, 2018
48cb744
add dependency
magicznyleszek Sep 13, 2018
01f8cc0
start writing unit tests for translations hack
magicznyleszek Sep 13, 2018
9b64f6d
more tests, fix no-lang case
magicznyleszek Sep 14, 2018
3f51acc
fix tests data
magicznyleszek Sep 14, 2018
bcacd12
more nullify tests
magicznyleszek Sep 14, 2018
a63c1fb
add two tests for unnulifying
magicznyleszek Sep 15, 2018
cd8ec4f
fix code
magicznyleszek Sep 15, 2018
9737f5a
post-review fix
pmusaraj Sep 17, 2018
328a0d6
Merge pull request #1989 from kobotoolbox/issue-1987
pmusaraj Sep 17, 2018
6156c6c
Merge pull request #1938 from kobotoolbox/issue-1883
pmusaraj Sep 17, 2018
09614b4
Updated TODO in SubmissionViewSet
noliveleger Sep 17, 2018
616fa0d
Fixed bad variable name for Celery 4
noliveleger Sep 17, 2018
d8b45fa
Merge branch 'rest_email_notification' into rest_subset_fields
noliveleger Sep 17, 2018
28a09d5
Integrate with formpack SPSS label export feature
jnm Sep 19, 2018
ba0257b
Merge pull request #1997 from kobotoolbox/1607-spss-export
noliveleger Sep 19, 2018
00bf5e9
bigger asset row click area
magicznyleszek Sep 20, 2018
dc12402
fix zindexes
magicznyleszek Sep 20, 2018
3c840f4
use grouped name for repeat_group
magicznyleszek Sep 21, 2018
98affdb
Merge pull request #1993 from kobotoolbox/issue-1918
pmusaraj Sep 22, 2018
d95aba9
Merge pull request #1969 from kobotoolbox/better-import-errors-2
pmusaraj Sep 22, 2018
4eef704
Merge pull request #1990 from kobotoolbox/issue-1979
pmusaraj Sep 22, 2018
98bb0c6
better hover color
magicznyleszek Sep 24, 2018
3994d45
Merge branch 'master' into translations-formtemplates-merge
magicznyleszek Sep 24, 2018
4ca2ec1
fix nongrouped repeatable group display
magicznyleszek Sep 24, 2018
8d0e95f
Merge pull request #1913 from kobotoolbox/translations-formtemplates-…
jnm Sep 24, 2018
82e7d91
Upgrade to pyxform 0.11.5; closes #2000
jnm Sep 24, 2018
9433db7
Restore `export default` to fix modals
jnm Sep 24, 2018
f16a0bf
remove duplicate class export
magicznyleszek Sep 25, 2018
9fa75eb
Merge pull request #2002 from kobotoolbox/quick-fix-modals
magicznyleszek Sep 25, 2018
8e4efed
Merge branch 'master' into REST-UI
magicznyleszek Sep 25, 2018
a88db1f
Merge branch 'master' into issue-1690
magicznyleszek Sep 25, 2018
dc74758
Merge branch 'master' into issue-1922
magicznyleszek Sep 25, 2018
7eb7c8c
Merge branch 'master' into issue-1994
magicznyleszek Sep 25, 2018
24336bf
Merge branch 'master' into issue-1995
magicznyleszek Sep 25, 2018
a19ab8e
Merge remote-tracking branch 'origin/master' into 2000-upstream-pyxform
jnm Sep 25, 2018
7a77f44
Merge pull request #1999 from kobotoolbox/issue-1994
pmusaraj Sep 25, 2018
daa54c0
Merge branch 'master' into REST-UI
noliveleger Sep 26, 2018
727c9df
update webpack versions
magicznyleszek Sep 26, 2018
0154721
Merge pull request #2005 from kobotoolbox/update-webpack
noliveleger Sep 26, 2018
5d2b5f2
Merge branch 'master' into REST-UI
noliveleger Sep 26, 2018
39ad513
Merge pull request #2001 from kobotoolbox/2000-upstream-pyxform
noliveleger Sep 26, 2018
aed510e
Merged migrations, changed DateField default value to Django timezone…
noliveleger Sep 26, 2018
64e53c5
Removed useless 'retry' method in Hook class
noliveleger Sep 26, 2018
f95065e
Moved retry equation to static method
noliveleger Sep 26, 2018
2ef709c
Changed the way authentication is tested prior to send username/passw…
noliveleger Sep 26, 2018
b2d083e
Fixed forgotten import
noliveleger Sep 26, 2018
4c1c89f
Catch requests errors to remote server with 'raise_for_status()'
noliveleger Sep 26, 2018
bce60cc
confirm dialog for closing modal
magicznyleszek Sep 27, 2018
b65925c
move close modal Esc shortcut to ui code
magicznyleszek Sep 27, 2018
8f56b6f
Allow HookLog.status_code to be null, separate remote server status_c…
noliveleger Sep 27, 2018
4250523
Moved KOBO_INTERNAL_ERROR_STATUS_CODE to constant.py
noliveleger Sep 27, 2018
4064049
Moved HOOK_MAX_RETRIES to Constance config instead of Django settings
noliveleger Sep 27, 2018
232a9f8
Added public domain name is Hook User Agent
noliveleger Sep 27, 2018
e554091
Overload logging
noliveleger Sep 27, 2018
cd13bae
Merge branch 'master' into REST-UI
magicznyleszek Sep 27, 2018
ff463eb
Updated code to use overloaded logging
noliveleger Sep 27, 2018
d14e0ba
Merge pull request #1980 from kobotoolbox/issue-1894-FE
magicznyleszek Sep 27, 2018
d07bc73
fix undefined value JS error
magicznyleszek Sep 27, 2018
36cfd64
Merge REST-UI branch into rest_email_notification
noliveleger Sep 27, 2018
66a55b1
Fixed permissions for non-owner and anonymous users
noliveleger Sep 27, 2018
e2188e1
Merge rest_email_notification branch into rest_subset_field
noliveleger Sep 27, 2018
bea516f
back button confirm and text changes
magicznyleszek Sep 28, 2018
c1bc845
remove unnecessary return
magicznyleszek Sep 28, 2018
9483f2a
custom save button label for unsaved changes
magicznyleszek Sep 28, 2018
79d6c72
add back confirm only for unsaved changes
magicznyleszek Sep 28, 2018
9a80eed
fix capitalization
magicznyleszek Sep 28, 2018
2b92e34
fix undefined asset header error
magicznyleszek Sep 28, 2018
7152d00
update react
magicznyleszek Sep 28, 2018
c4fd44e
remove unused async dependency
magicznyleszek Sep 28, 2018
b7b5296
remove unused bluebird dependency
magicznyleszek Sep 28, 2018
6ba84d0
remove unused browser-sync dependency
magicznyleszek Sep 28, 2018
bf93707
remove unused diff dependency
magicznyleszek Sep 28, 2018
5277f4a
remove unused lodash._bindcallback dependency
magicznyleszek Sep 28, 2018
8ec61b6
remove unused lodash.isarguments dependency
magicznyleszek Sep 28, 2018
5f085fc
remove unused lodash.isarray dependency
magicznyleszek Sep 28, 2018
cbd37f1
remove unused lodash.restparam dependency
magicznyleszek Sep 28, 2018
2bf6c6c
remove unused mime-types dependency
magicznyleszek Sep 28, 2018
3eea867
remove unused ms dependency
magicznyleszek Sep 28, 2018
cd66816
remove unused opn-cli dependency
magicznyleszek Sep 28, 2018
dd55c28
remove unused q dependency
magicznyleszek Sep 28, 2018
f35fdd4
remove unused rimraf dependency
magicznyleszek Sep 28, 2018
8f94049
remove unused vinyl-source-stream dependency
magicznyleszek Sep 28, 2018
5fc6769
remove unused webpack-dev-middleware dependency
magicznyleszek Sep 28, 2018
0265e1f
remove unused webpack-hot-middleware dependency
magicznyleszek Sep 28, 2018
a689c46
update autoprefixer dependency
magicznyleszek Sep 28, 2018
b766b79
update babel-plugin-add-module-exports
magicznyleszek Sep 28, 2018
5c59bed
update roboto-fontface
magicznyleszek Sep 28, 2018
719b2ed
update style-loader
magicznyleszek Sep 28, 2018
d30a5b6
update style-loader p2
magicznyleszek Sep 28, 2018
7916514
update postcss & postcss-loader
magicznyleszek Sep 28, 2018
352837a
update file-loader
magicznyleszek Sep 28, 2018
a5f167c
update css-loader
magicznyleszek Sep 28, 2018
c09a6e0
update eslint & babel-eslint
magicznyleszek Sep 28, 2018
3070879
remove unused es6-promise
magicznyleszek Sep 28, 2018
df874f1
remove old and unnecessary dependency
magicznyleszek Sep 28, 2018
7052c4f
update lodash.merge
magicznyleszek Sep 28, 2018
1e907d6
update react-autosize-textarea
magicznyleszek Sep 28, 2018
78ada53
update react-dropzone
magicznyleszek Sep 28, 2018
0599733
update react-mixin
magicznyleszek Sep 28, 2018
18cb79d
Updated comments
noliveleger Sep 28, 2018
72c04d3
Use instance_id instead of instance_uuid to retrieve data from kc
noliveleger Sep 28, 2018
07b9c30
Merge REST-UI into REST_UI_logging
noliveleger Sep 28, 2018
27306c3
Merge branch 'REST-UI' into rest_email_notification
noliveleger Sep 28, 2018
3761419
Fixed bad merge with REST-UI
noliveleger Sep 28, 2018
44adb0e
Fixed forgotten replace of instance_uuid
noliveleger Sep 28, 2018
7c99d63
Merge branch 'REST-UI' into REST_UI_logging
noliveleger Sep 28, 2018
d5d3a14
Merge branch 'REST-UI' into rest_email_notification
noliveleger Sep 28, 2018
94f8003
Merged rest_email_notification branch into rest_subset_fields
noliveleger Sep 28, 2018
2ecc958
fix fonts copying
magicznyleszek Oct 1, 2018
24ed9cd
fix few labels
magicznyleszek Oct 2, 2018
c7d0fd1
bigger label
magicznyleszek Oct 2, 2018
3e454df
fix auth level editing
magicznyleszek Oct 2, 2018
87d3c8b
Merge pull request #2008 from kobotoolbox/REST_UI_logging
jnm Oct 2, 2018
ad048dc
Merge pull request #2007 from kobotoolbox/issue-2006
jnm Oct 2, 2018
f82afe8
Rename function (minor nitpick)
jnm Oct 2, 2018
4593c20
Add missing negation
jnm Oct 2, 2018
2ea60af
Merge pull request #1992 from kobotoolbox/issue-1690
jnm Oct 2, 2018
cfd9053
Merge pull request #1998 from kobotoolbox/issue-1995
jnm Oct 2, 2018
cfc1c50
Merge pull request #2014 from kobotoolbox/issue-2010
jnm Oct 2, 2018
0831eae
Merge pull request #1923 from kobotoolbox/issue-1922
jnm Oct 2, 2018
2195b3b
tweak some styles for rest services
magicznyleszek Oct 3, 2018
944d644
Merge branch 'REST-UI' of github.com:kobotoolbox/kpi into REST-UI
magicznyleszek Oct 3, 2018
f8c3927
use TextBox component in REST modal and add visual validation
magicznyleszek Oct 3, 2018
e2cb641
Merge branch 'master' into REST-UI
magicznyleszek Oct 3, 2018
0563544
Merge pull request #1864 from kobotoolbox/REST-UI
jnm Oct 3, 2018
d08d2ac
Merge branch 'REST-UI' into rest_email_notification
jnm Oct 3, 2018
f9ae5a9
Applied requested changes of PR #2015
noliveleger Oct 3, 2018
797aca2
Merged rest_email_notification branch into rest_subset_field
noliveleger Oct 3, 2018
370d1c9
Changed 'from' in notification email, fixed some typos
noliveleger Oct 3, 2018
112c17f
Merge branch 'rest_email_notification' into rest_subset_fields
noliveleger Oct 3, 2018
b07f538
Merge remote-tracking branch 'origin/master' into rest_subset_fields
jnm Oct 3, 2018
cca149f
Add failing test case for subgroup whose name...
jnm Oct 3, 2018
2978662
Add missing backtick (docstring typo)
jnm Oct 3, 2018
7b80eaa
Remove stray whitespace
jnm Oct 3, 2018
789219d
Merge pull request #2015 from kobotoolbox/rest_email_notification
jnm Oct 3, 2018
030e36e
fix default checkbox styling
magicznyleszek Oct 4, 2018
505b530
Merge pull request #2023 from kobotoolbox/fix-default-checkbox-styling
pmusaraj Oct 4, 2018
8bc1141
Applied requested changes for PR#2016
noliveleger Oct 4, 2018
36cbad2
Merge branch 'rest_subset_fields' of github.com:kobotoolbox/kpi into …
noliveleger Oct 4, 2018
6ffe18c
Fixed xml parser bug when 2 names of groups start with the same strin…
noliveleger Oct 4, 2018
5318fa1
Added some comments
noliveleger Oct 4, 2018
c40dfa3
Added better comments for group detection logic
noliveleger Oct 4, 2018
da4c69e
rename share button
magicznyleszek Oct 5, 2018
c4d261f
Merge pull request #2025 from kobotoolbox/issue-2024
pmusaraj Oct 5, 2018
bff0de7
Fixed bad PR#2016 change
noliveleger Oct 9, 2018
7d9ee31
Fix typo
jnm Oct 9, 2018
1b351c5
Remove more magic; tidy up some minor things
jnm Oct 9, 2018
697777d
Merge remote-tracking branch 'origin/rest_email_notification' into re…
jnm Oct 9, 2018
6ce1c0b
Merge pull request #2016 from kobotoolbox/rest_subset_fields
jnm Oct 9, 2018
251fcc2
Merge pull request #2026 from kobotoolbox/rest_email_notification
jnm Oct 9, 2018
e6f6a1e
Merge pull request #2027 from kobotoolbox/REST-UI
jnm Oct 9, 2018
d54c37b
define new store for translations
magicznyleszek Oct 10, 2018
5c23727
simplify switchModal method
magicznyleszek Oct 10, 2018
23e0d92
use translations store for managing translationTable modal closing
magicznyleszek Oct 10, 2018
78e5ab0
Merge pull request #2028 from kobotoolbox/issue-2020
pmusaraj Oct 11, 2018
f34f568
Add failing test for AssetSnapshot XML endpoint
jnm Oct 12, 2018
6b345ef
Added USE_X_FORWARDED_HOST variable in settings for dev purpose
noliveleger Oct 15, 2018
9bd7150
Update comment for 'USE_X_FORWARDED_HOST' variable
noliveleger Oct 15, 2018
c630c3a
Typo correction
noliveleger Oct 16, 2018
358d2fc
Disregard `USE_X_FORWARDED_HOST` by default
jnm Oct 16, 2018
3f80576
Merge pull request #2031 from kobotoolbox/kobo_install_dev_mode
jnm Oct 16, 2018
80e3444
Merge branch '2029-snapshot-xml-renderer' of github.com:kobotoolbox/k…
noliveleger Oct 18, 2018
d1165b5
Reordered imports
noliveleger Oct 19, 2018
507adae
Use an extended class of rest_framework_xml.renderers.XMLRenderer as …
noliveleger Oct 19, 2018
0cb70c5
Commented 'list' method from SubmissionViewSet, still use KobocatBack…
noliveleger Oct 19, 2018
5a24cd1
Added TO-DO in comments
noliveleger Oct 19, 2018
669b825
Update formpack for `ValidationStatusCopyField`
jnm Oct 23, 2018
6d744cf
Add _validation_status to exports; closes #1851
jnm Oct 23, 2018
5b14872
fix missing choices
magicznyleszek Oct 23, 2018
20dcfb4
Added Django logger to loggers when Raven is not activated, hardcoded…
noliveleger Oct 23, 2018
77f5ab9
Unittests: added support for 'validation_status' field when exporting…
noliveleger Oct 23, 2018
432f098
Merge pull request #2038 from kobotoolbox/1851-export-validation-stat…
noliveleger Oct 23, 2018
101386b
Removed 'renderer_classes' decorator in KoboCatBackendMixin. Was for …
noliveleger Oct 23, 2018
5e16195
PEP8: Restored blank line at EOF 'renderers.py'
noliveleger Oct 23, 2018
9646e12
Merge pull request #2041 from kobotoolbox/issue-2040
pmusaraj Oct 23, 2018
e0842b5
Merge pull request #2035 from kobotoolbox/2029-snapshot-xml-renderer
jnm Oct 23, 2018
fe2157c
Use domain name instead of localhost when it's available to make webp…
noliveleger Oct 23, 2018
b5ea269
Properly handle non-unique `id_string`s
jnm Nov 5, 2018
9ff8b56
Merge pull request #2049 from kobotoolbox/correct-instance-queries
noliveleger Nov 5, 2018
550dc43
Merge pull request #2042 from kobotoolbox/kobo-install-web-pack-compl…
jnm Nov 5, 2018
3bafc75
fix copypaste error
magicznyleszek Nov 6, 2018
388267e
Fix #2058: `IntegrityError` when previewing
jnm Nov 7, 2018
d54584c
Merge pull request #2059 from kobotoolbox/issue-2055
jnm Nov 7, 2018
590db2d
Merge pull request #2060 from kobotoolbox/2058-multiple-previews-of-u…
jnm Nov 7, 2018
603ef0a
Upgrade formpack to fix #2057
jnm Nov 7, 2018
3d04616
Merge pull request #2066 from kobotoolbox/2057-formpack-preview-fails…
jnm Nov 8, 2018
e195894
Added another filter to AssetViewSet to narrow down results when spec…
noliveleger Nov 9, 2018
6b3daaf
Removed useless logging info
noliveleger Nov 9, 2018
475037d
Removed useless filer on AssetViewSet
noliveleger Nov 9, 2018
bed6475
Merge pull request #2068 from kobotoolbox/2061-duplicate-assets
jnm Nov 10, 2018
87ff756
Remove Fabric configuration. Closes #2087
jnm Nov 20, 2018
9346273
Merge pull request #2088 from kobotoolbox/2087-remove-fabric-configur…
noliveleger Nov 22, 2018
22c1898
Use FormPack fix #182
noliveleger Nov 22, 2018
6da893d
Merge pull request #2091 from kobotoolbox/2089-remove-multiple-option…
jnm Nov 28, 2018
81f0c2e
Merge branch 'upstream' into update-upstream-2.018.48
Tomatosoup97 Jan 27, 2019
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
4 changes: 2 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
}
},
"rules": {
"strict": 0,
"curly": 0,
"quotes": ["warn", "single"],
"quotes": ["warn", "single", {"avoidEscape": true}],
"no-underscore-dangle": 0,
"camelcase": [0],
"new-cap": 0,
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ test/compiled/*
.idea/
celerybeat-schedule
deployments.json
.DS_Store
.DS_Store
jsapp/fonts
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ RUN ln -s "${KPI_SRC_DIR}/docker/init.bash" /etc/my_init.d/10_init_kpi.bash && \
ln -s "${KPI_SRC_DIR}/docker/run_uwsgi.bash" /etc/service/uwsgi/run && \
mkdir -p /etc/service/celery && \
ln -s "${KPI_SRC_DIR}/docker/run_celery.bash" /etc/service/celery/run && \
mkdir -p /etc/service/celery_beat && \
ln -s "${KPI_SRC_DIR}/docker/run_celery_beat.bash" /etc/service/celery_beat/run && \
mkdir -p /etc/service/celery_sync_kobocat_xforms && \
ln -s "${KPI_SRC_DIR}/docker/run_celery_sync_kobocat_xforms.bash" /etc/service/celery_sync_kobocat_xforms/run

Expand Down
14 changes: 11 additions & 3 deletions dependencies/pip/dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# pip-compile --output-file dependencies/pip/dev_requirements.txt dependencies/pip/dev_requirements.in
#
-e git+https://github.com/dimagi/django-digest@0eb1c921329dd187c343b61acfbec4e98450136e#egg=django_digest
-e git+https://github.com/kobotoolbox/formpack.git@d87364f951eb17f321957469a189f8dcb3eab5d1#egg=formpack
-e git+https://github.com/kobotoolbox/pyxform.git@2.018.19#egg=pyxform
-e git+https://github.com/kobotoolbox/formpack.git@40110eeb001b1a581aad6836f746fedef8be5752#egg=formpack
amqp==2.1.4
anyjson==0.3.3
argparse==1.4.0 # via unittest2
asn1crypto==0.24.0 # via cryptography
begins==0.9
billiard==3.5.0.2
Expand All @@ -21,9 +21,11 @@ cookies==2.2.1 # via responses
cryptography==2.2.2 # via paramiko, pyopenssl
cssselect==1.0.3 # via pyquery
cyordereddict==1.0.0
defusedxml==0.5.0 # via djangorestframework-xml
dj-database-url==0.4.2
dj-static==0.0.6
django-braces==1.11.0
django-celery-beat==1.1.1
django-constance[database]==2.2.0
django-debug-toolbar==1.6
django-extensions==1.7.6
Expand All @@ -44,11 +46,13 @@ django-taggit==0.22.0
django-toolbelt==0.0.1
django-webpack-loader==0.4.1
django==1.8.17
djangorestframework-xml==1.3.0
djangorestframework==3.5.4
docutils==0.13.1 # via botocore, statistics
drf-extensions==0.3.1
enum34==1.1.6 # via cryptography
fabric==1.13.1
formencode==1.3.1 # via pyxform
funcsigs==1.0.2 # via begins, mock
functools32==3.2.3.post2 # via jsonschema
futures==3.1.1 # via s3transfer
Expand All @@ -59,9 +63,10 @@ jmespath==0.9.3 # via boto3, botocore
jsonfield==1.0.3
jsonschema==2.6.0
kombu==4.0.2
linecache2==1.0.0 # via traceback2
lxml==4.2.1
markdown==2.6.8
mock==2.0.0 # via responses
mock==2.0.0
ndg-httpsclient==0.4.2
oauthlib==1.1.2
paramiko==2.1.1 # via fabric
Expand All @@ -80,6 +85,7 @@ pytest==3.0.6 # via pytest-django
python-dateutil==2.6.0
python-digest==1.7
pytz==2016.10
pyxform==0.11.5
requests==2.13.0
responses==0.9.0
s3transfer==0.1.11 # via boto3
Expand All @@ -89,7 +95,9 @@ sqlparse==0.2.2
static3==0.7.0
statistics==1.0.3.5
tabulate==0.7.7
traceback2==1.4.0 # via unittest2
unicodecsv==0.14.1
unittest2==1.1.0 # via pyxform
uwsgi==2.0.17
vine==1.1.3 # via amqp
werkzeug==0.11.15
Expand Down
23 changes: 16 additions & 7 deletions dependencies/pip/external_services.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,28 @@
# pip-compile --output-file dependencies/pip/external_services.txt dependencies/pip/external_services.in
#
-e git+https://github.com/dimagi/django-digest@0eb1c921329dd187c343b61acfbec4e98450136e#egg=django_digest
-e git+https://github.com/kobotoolbox/formpack.git@d87364f951eb17f321957469a189f8dcb3eab5d1#egg=formpack
-e git+https://github.com/kobotoolbox/pyxform.git@2.018.19#egg=pyxform
amqp==1.4.9
-e git+https://github.com/kobotoolbox/formpack.git@40110eeb001b1a581aad6836f746fedef8be5752#egg=formpack
amqp==2.3.2
anyjson==0.3.3
argparse==1.4.0 # via unittest2
asn1crypto==0.24.0 # via cryptography
begins==0.9
billiard==3.3.0.23
billiard==3.5.0.4
boto3==1.5.8
boto==2.40.0
botocore==1.8.22 # via boto3, s3transfer
celery==3.1.23
celery==4.2.1
cffi==1.8.3 # via cryptography
contextlib2==0.5.4 # via raven
cookies==2.2.1 # via responses
cryptography==2.2.2 # via pyopenssl
cssselect==1.0.3 # via pyquery
cyordereddict==1.0.0
defusedxml==0.5.0 # via djangorestframework-xml
dj-database-url==0.4.1
dj-static==0.0.6
django-braces==1.8.1
django-celery-beat==1.1.1
django-constance[database]==2.2.0
django-debug-toolbar==1.4
django-extensions==1.6.7
Expand All @@ -45,10 +47,12 @@ django-taggit==0.22.0
django-toolbelt==0.0.1
django-webpack-loader==0.3.0
django==1.8.13
djangorestframework-xml==1.3.0
djangorestframework==3.3.3
docutils==0.12 # via botocore, statistics
drf-extensions==0.3.1
enum34==1.1.6 # via cryptography
formencode==1.3.1 # via pyxform
funcsigs==1.0.2 # via begins, mock
functools32==3.2.3.post2 # via jsonschema
futures==3.1.1 # via s3transfer
Expand All @@ -58,10 +62,11 @@ ipaddress==1.0.17 # via cryptography
jmespath==0.9.3 # via boto3, botocore
jsonfield==1.0.3
jsonschema==2.6.0
kombu==3.0.35
kombu==4.2.1
linecache2==1.0.0 # via traceback2
lxml==4.2.1
markdown==2.6.6
mock==2.0.0 # via responses
mock==2.0.0
ndg-httpsclient==0.4.2
newrelic==2.84.0.64
oauthlib==1.0.3
Expand All @@ -80,6 +85,7 @@ pytest==3.0.3 # via pytest-django
python-dateutil==2.6.0
python-digest==1.7
pytz==2016.4
pyxform==0.11.5
raven==5.32.0
requests==2.10.0
responses==0.9.0
Expand All @@ -90,10 +96,13 @@ sqlparse==0.1.19
static3==0.7.0
statistics==1.0.3.5
tabulate==0.7.5
traceback2==1.4.0 # via unittest2
transifex-client==0.11
unicodecsv==0.14.1
unittest2==1.1.0 # via pyxform
urllib3==1.15.1 # via transifex-client
uwsgi==2.0.17
vine==1.1.4 # via amqp
whitenoise==3.3.1
whoosh==2.7.4
xlrd==1.1.0
Expand Down
11 changes: 6 additions & 5 deletions dependencies/pip/requirements.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# File for use with `pip-compile`; see https://github.com/nvie/pip-tools
# https://github.com/bndr/pipreqs is a handy utility, too.

# Custom pyxform
-e git+https://github.com/kobotoolbox/pyxform.git@2.018.19#egg=pyxform

# Formpack
-e git+https://github.com/kobotoolbox/formpack.git@d87364f951eb17f321957469a189f8dcb3eab5d1#egg=formpack
-e git+https://github.com/kobotoolbox/formpack.git@40110eeb001b1a581aad6836f746fedef8be5752#egg=formpack

# More up-to-date version of django-digest than PyPI seems to have.
# Also, python-digest is an unlisted dependency thereof.
Expand All @@ -24,10 +21,11 @@ anyjson
billiard
boto
boto3
celery
celery>=4.0,<5.0
dj-static
dj-database-url
django-braces
django-celery-beat
django-constance[database]
django-debug-toolbar
django-extensions
Expand All @@ -46,17 +44,20 @@ django-taggit
django-storages
django-private-storage
djangorestframework
djangorestframework-xml
drf-extensions
gunicorn
jsonfield
kombu
lxml
mock
oauthlib
psycopg2
pymongo
pytest-django
python-dateutil
pytz
pyxform
requests
responses
shortuuid
Expand Down
23 changes: 16 additions & 7 deletions dependencies/pip/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@
# pip-compile --output-file dependencies/pip/requirements.txt dependencies/pip/requirements.in
#
-e git+https://github.com/dimagi/django-digest@0eb1c921329dd187c343b61acfbec4e98450136e#egg=django_digest
-e git+https://github.com/kobotoolbox/formpack.git@d87364f951eb17f321957469a189f8dcb3eab5d1#egg=formpack
-e git+https://github.com/kobotoolbox/pyxform.git@2.018.19#egg=pyxform
amqp==1.4.9
-e git+https://github.com/kobotoolbox/formpack.git@40110eeb001b1a581aad6836f746fedef8be5752#egg=formpack
amqp==2.3.2
anyjson==0.3.3
argparse==1.4.0 # via unittest2
asn1crypto==0.24.0 # via cryptography
begins==0.9
billiard==3.3.0.23
billiard==3.5.0.4
boto3==1.5.8
boto==2.40.0
botocore==1.8.22 # via boto3, s3transfer
celery==3.1.23
celery==4.2.1
cffi==1.8.3 # via cryptography
cookies==2.2.1 # via responses
cryptography==2.2.2 # via pyopenssl
cssselect==1.0.3 # via pyquery
cyordereddict==1.0.0
defusedxml==0.5.0 # via djangorestframework-xml
dj-database-url==0.4.1
dj-static==0.0.6
django-braces==1.8.1
django-celery-beat==1.1.1
django-constance[database]==2.2.0
django-debug-toolbar==1.4
django-extensions==1.6.7
Expand All @@ -44,10 +46,12 @@ django-taggit==0.22.0
django-toolbelt==0.0.1
django-webpack-loader==0.3.0
django==1.8.13
djangorestframework-xml==1.3.0
djangorestframework==3.3.3
docutils==0.12 # via botocore, statistics
drf-extensions==0.3.1
enum34==1.1.6 # via cryptography
formencode==1.3.1 # via pyxform
funcsigs==1.0.2 # via begins, mock
functools32==3.2.3.post2 # via jsonschema
futures==3.1.1 # via s3transfer
Expand All @@ -57,10 +61,11 @@ ipaddress==1.0.17 # via cryptography
jmespath==0.9.3 # via boto3, botocore
jsonfield==1.0.3
jsonschema==2.6.0
kombu==3.0.35
kombu==4.2.1
linecache2==1.0.0 # via traceback2
lxml==4.2.1
markdown==2.6.6
mock==2.0.0 # via responses
mock==2.0.0
ndg-httpsclient==0.4.2
oauthlib==1.0.3
path.py==11.0.1
Expand All @@ -78,6 +83,7 @@ pytest==3.0.3 # via pytest-django
python-dateutil==2.6.0
python-digest==1.7
pytz==2016.4
pyxform==0.11.5
requests==2.10.0
responses==0.9.0
s3transfer==0.1.11 # via boto3
Expand All @@ -87,8 +93,11 @@ sqlparse==0.1.19
static3==0.7.0
statistics==1.0.3.5
tabulate==0.7.5
traceback2==1.4.0 # via unittest2
unicodecsv==0.14.1
unittest2==1.1.0 # via pyxform
uwsgi==2.0.17
vine==1.1.4 # via amqp
whitenoise==3.3.1
whoosh==2.7.4
xlrd==1.1.0
Expand Down
2 changes: 1 addition & 1 deletion docker/run_celery.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ source /etc/profile

# Run the main Celery worker (will not process `sync_kobocat_xforms` jobs).
cd "${KPI_SRC_DIR}"
exec celery worker -A kobo --beat --loglevel=info \
exec celery worker -A kobo --loglevel=info \
--hostname=main_worker@%h \
--logfile=${KPI_LOGS_DIR}/celery.log \
--pidfile=/tmp/celery.pid \
Expand Down
10 changes: 10 additions & 0 deletions docker/run_celery_beat.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
source /etc/profile

# Run the main Celery worker (will not process `sync_kobocat_xforms` jobs).
cd "${KPI_SRC_DIR}"
exec celery beat -A kobo --loglevel=info \
--logfile=${KPI_LOGS_DIR}/celery_beat.log \
--pidfile=/tmp/celery_beat.pid \
--scheduler django_celery_beat.schedulers:DatabaseScheduler
4 changes: 1 addition & 3 deletions docker/run_celery_sync_kobocat_xforms.bash
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,4 @@ exec celery worker -A kobo --loglevel=info \
--pidfile=/tmp/celery_sync_kobocat_xforms.pid \
--queues=sync_kobocat_xforms_queue \
--concurrency=1 \
--maxtasksperchild=1
# Watch out: this may be changed in 4.x to `--max-tasks-per-child` per
# http://docs.celeryproject.org/en/latest/reference/celery.bin.worker.html#cmdoption-celery-worker-max-tasks-per-child
--max-tasks-per-child=1
1 change: 0 additions & 1 deletion fabfile/__init__.py

This file was deleted.

Loading