Commit Graph

20098 Commits

Author SHA1 Message Date
Feanil Patel
93142ebd2d Update the ssencrypt logic for python3.
We updated the underlying methods to always be passing unicode strings
aronud and only encode them to bytes when we need to hash them.
2019-09-18 16:28:11 -04:00
Feanil Patel
3427c1abf3 BOM-618 Pass unicode to json.loads 2019-09-18 16:28:11 -04:00
Ned Batchelder
6408f96e18 Use explicit values in test assertions. BOM-683
Python 3 changed how rounding is performed. In Python 2, .625 rounded to
.63 (as our grading code rounds it, so the test passed).  In Python 3,
.625 rounds to .62.  This fixes the test by avoiding round() to
calculate the expected value, and instead simply using the value we
expect.
2019-09-18 16:13:40 -04:00
Feanil Patel
de0eafa0ba BOM-618 Decode test client content.
The django test client returns bytes, and many of our tests start using
it like a string. This was fine in python 2 but not in python3.
2019-09-18 14:58:30 -04:00
Ned Batchelder
b027437e80 get_all_orgs returns a set, not a list. BOM-731 2019-09-18 13:42:55 -04:00
Awais Qureshi
8997ba5fbb Merge pull request #21685 from edx/awais786/BOM-422
BOM-422
2019-09-17 22:58:34 +05:00
Ayub
78a22371c5 Merge pull request #21668 from edx/BOM-438
BOM-438
2019-09-17 22:42:22 +05:00
David Ormsbee
993e9630b4 Merge pull request #21677 from open-craft/samuel/fix-migration-crash
SE-1553 conditionally run migration on CSMH Extended table
2019-09-17 13:19:40 -04:00
Stu Young
13bbf85257 clean up toggle annotations (#21673)
clean up toggle annotations and lint when running feature toggle report
2019-09-17 11:11:20 -04:00
Awais Qureshi
a4428d751d BOM-422
Fixing python3
2019-09-17 19:00:05 +05:00
Ayub
11a9a4b953 Merge pull request #21665 from edx/BOM-448
BOM-448
2019-09-17 16:22:52 +05:00
Ayub khan
d34eba0e9c BOM-438
Python3 compatibility.
2019-09-17 16:08:32 +05:00
Samuel Walladge
eeedc39b3e conditionally run migration on CSMH Extended table
CSMH_EXTENDED is optional, so this table is not guaranteed to exist.
2019-09-17 11:00:17 +09:30
Ned Batchelder
a4f03620a4 Merge pull request #21645 from edx/nedbat/no-pipes-on-logout
Remove extraneous pipes
2019-09-16 06:41:27 -04:00
Ayub
7b186b2f52 Merge pull request #21656 from edx/BOM-420
BOM-420
2019-09-16 12:26:46 +05:00
Ayub khan
f70bc1a03c BOM-448
python3 compatibility, tests fixes
2019-09-16 12:19:26 +05:00
Matt Hughes
4957b981a4 Only delete latest grade override if it came from proctoring
... on proctored exam attempt deletion

JIRA:EDUCATOR-4642
2019-09-13 11:54:32 -04:00
Ayub khan
06c7e3e4e9 BOM-420
fixed all file tests
2019-09-13 18:39:00 +05:00
Michael Terry
45d48e07cd Drop RUN_AS_ANALYTICS_SERVER_ENABLED
This is an ancient feature flag that uses an archived and
unsupported support library (edinsights, edx/insights).

DEPR-44
2019-09-13 09:30:02 -04:00
adeelehsan
89c57a636a Merge pull request #21572 from edx/aehsan/learner-3838/user_agent_regex_updated_for_mobile_platform
user agent regex updated in mobile platform
2019-09-13 15:05:52 +05:00
Aarif
072f878b90 Merge pull request #21637 from edx/BOM-446
BOM-446
2019-09-13 14:40:36 +05:00
Aarif
616ee00437 Merge pull request #21621 from edx/BOM-412
BOM-412
2019-09-13 12:01:07 +05:00
Kyle McCormick
358f989131 Create Python API for program_enrollments: Part III
This is the third in a series of commits to create
a Python API for the LMS program_enrollments app.
It does the following:
* Creates api/ folder.
* Moves link_program_enrollments.py to api/linking.py
* Creates api/reading.py for enrollment-fetching
  functions.
* Updates rest of app to use api/reading.py when
  it was going directly through the models before.
* Other misc. cleanup (isorting, unicode_literals,
  line breaks, etc).

Still to do:
* Create api/writing.py and update app to use it instead
  of going directly through models.
* Create api/reset.py and api/expire.py, which the management
  commands call out to.

EDUCATOR-4321
2019-09-12 14:54:03 -04:00
Awais Qureshi
1dde3c354a Merge pull request #21642 from edx/awais786/BOM-472
BOM-472
2019-09-12 21:30:30 +05:00
Awais Qureshi
ab50ee96ec Merge pull request #21636 from edx/BOM-411
BOM-411
2019-09-12 21:23:58 +05:00
Feanil Patel
1842ac2225 Merge pull request #21644 from edx/feanil/fix_bokchoy
Feanil/fix bokchoy
2019-09-12 12:04:08 -04:00
Ned Batchelder
e44f6d958c Remove extraneous pipes 2019-09-12 10:50:10 -04:00
Feanil Patel
dfe77a968e Remove the mongo plugin for the djnago-debug-toolbar.
We are currently running this plugin from a has directly off of master
to get support for a newer version of DJDT.  However even on master
there is not yet support for python 3.  We're running into this when
running runserver and when collecting static assets.

A quick survey of the development team at edX shows that people are no
longer actively using this debug panel.(14 responders all saying no to
the question "In the last year have you used the mongo portion of the
django-debug-toolbar in edx-platform?")

This makes sense since the module store and courseware related
developement is not very active right now.  Given all this, I'm removing
this toolbar for now and if we need it again we can survey what's
available at that time to choose the best tool.
2019-09-12 10:18:46 -04:00
Awais Qureshi
dfb00f95b5 BOM-411
Fixing python3
2019-09-12 19:12:37 +05:00
Awais Qureshi
fd2b7b65e2 BOM-471
Fixing python3
2019-09-12 19:09:59 +05:00
Awais Qureshi
fac33c275d BOM-472
Fixing python3
2019-09-12 19:08:23 +05:00
aarif
9301ec38f3 python 3 fixes 2019-09-12 17:29:34 +05:00
aarif
dba8a23144 python 3 fixes
test fixes

changes made as suggested

updated the variable name
2019-09-12 15:32:19 +05:00
Ayub
b536b4acaf Merge pull request #21554 from edx/BOM-238
BOM-238
2019-09-12 12:34:28 +05:00
Awais Qureshi
9d4ac90b62 Merge pull request #21611 from edx/awais786/BOM-404
BOM-404
2019-09-11 19:04:32 +05:00
Awais Qureshi
2338c34abd Merge pull request #21620 from edx/awais786/BOM-409
BOM-409
2019-09-11 19:03:01 +05:00
Awais Qureshi
f528e31b76 Merge pull request #21619 from edx/awais786/BOM-416
Awais786/bom 416
2019-09-11 19:01:22 +05:00
Awais Qureshi
762db8a2df Merge pull request #21624 from edx/awais786/BOM-426
BOM-426
2019-09-11 18:59:28 +05:00
Awais Qureshi
16e3ae71c1 BOM-426
Fixing python3
2019-09-11 17:17:00 +05:00
Ayub
82bddf12ab Merge pull request #21578 from edx/BOM-106
BOM-106
2019-09-11 16:44:27 +05:00
Ayub khan
7bc093eee9 BOM-238
python3 compatibility
2019-09-11 16:39:52 +05:00
Awais Qureshi
441e6b57b2 BOM-409
Fixing python3
2019-09-11 16:17:30 +05:00
Aarif
8511c00ad9 Merge pull request #21529 from edx/BOM-131
BOM-131 Python 3 fixes
2019-09-11 16:17:18 +05:00
Awais Qureshi
ff98318aa4 BOM-416
Fixing python3
2019-09-11 16:04:06 +05:00
Ayub khan
8f65e6923b BOM-106
python3 compatibility
2019-09-11 16:03:58 +05:00
Awais Qureshi
d1de513cdf BOM-410
Fixing python3
2019-09-11 15:18:30 +05:00
Ayub khan
26d9866bb2 BOM-123
Removed broken tests.
2019-09-11 14:24:59 +05:00
Awais Qureshi
98ec44b56c BOM-404
Fixing python3
2019-09-11 12:52:56 +05:00
DawoudSheraz
197d281a1b speech output for completion checkmarks 2019-09-11 09:26:51 +05:00
Ben Holt
8bb52f177f REV-935 add api endpoint to decide if mobile should show upsell (#21612)
Add experimental api endpoint for mobile upsell experiment, more unit tests coming soon
2019-09-10 14:08:54 -04:00