Commit Graph

51562 Commits

Author SHA1 Message Date
Jeremy Bowman
83eb9e7f1a Fix auth_exchange tests BOM-648 2019-09-18 16:37:52 -04:00
Michael Terry
1f024c406b Add Studio note about mktg site delay
Add a note when marketing site is enabled that there is a delay
from changes in Studio appearing on the marketing site.

DISCO-1356
2019-09-18 16:31:36 -04:00
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
90838d27aa BOM-618 update dependency to fix test mixins. 2019-09-18 15:14:07 -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
456ab68986 Check for ascii with an explicit ascii encode. BOM-728 2019-09-18 14:49:03 -04:00
Ned Batchelder
1c6ed4026e Test JSON data without relying on arbitrary ordering. BOM-734 2019-09-18 14:34:16 -04:00
Jeremy Bowman
07ab555d05 Fix most common/djangoapps/util tests 2019-09-18 14:26:41 -04:00
Alex Dusenbery
44c96b4e9b Minor correction of grade freeze ADR. 2019-09-18 14:24:40 -04:00
Ned Batchelder
7281fed719 Test JSON data without relying on arbitrary ordering. BOM-735 2019-09-18 14:24:37 -04:00
Feanil Patel
cb64fed1af BOM-489 Studio tests with byte/str mismatch. 2019-09-18 14:21:16 -04:00
Jeremy Bowman
8f6286a1a2 Fix a few user_api tests 2019-09-18 14:07:38 -04:00
Jeremy Bowman
5f2a6430fe Fix YouTube stub responses 2019-09-18 13:56:11 -04:00
Jeremy Bowman
0c207859cd Fix most tests in user_authn 2019-09-18 13:43: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
Ned Batchelder
1e4fac6440 Better tests of stringifying objects. BOM-730 and BOM-731 2019-09-18 13:29:32 -04:00
Jeremy Bowman
f68c7e87f7 Fix student.helpers logging tests 2019-09-18 12:59:32 -04:00
Jeremy Bowman
42cfb3ec8f Fix last common/djangoapps/track test 2019-09-18 12:08:36 -04:00
Jeremy Bowman
6f18383142 Fix bytes/string handling in tracking middleware 2019-09-18 11:59:24 -04:00
Feanil Patel
220759ee1d Remove unnecessary print statements. 2019-09-18 11:52:15 -04:00
Feanil Patel
ea49975a73 BOM-617 Fix test_static_replace test failures.
Update the tests around static_file code to use byte streams instead of
string streams for generating static content.  This is a fix to get
these tests passing on python 3.
2019-09-18 11:51:49 -04:00
David Ormsbee
6ee4cbd94e Merge pull request #21697 from open-craft/symbolist/disable-edxnotes-blockstore-runtime
Disable edxnotes for blockstore runtime.
2019-09-18 11:39:27 -04:00
Usman Khalid
997f765eaf Disable edxnotes for blockstore runtime.
Blockstore runtime does not support courses currently and it will
not have the modulestore attribute in any case.
2019-09-18 19:54:57 +05:00
Braden MacDonald
1382bf8720 Save user state for Blockstore XBlocks in CSM, clean up CSM a bit (#21630)
This commit introduces the changes needed for XBlocks in Blockstore to save
their user state into CSM. Before this commit, all student state for Blockstore
blocks was ephemeral (in-process dict store).

Notes:

* The main risk factor of this PR is that it adds non-course keys to the
  course_id field in CSM. If any code (like analytics?) reads course keys
  directly out of CSM and doesn't have graceful handling for key types it
  doesn't recognize, it could cause an issue. With the included changes to
  opaque-keys, calling CourseKey.from_string(...) on these values will raise
  InvalidKeyError since they're not CourseKeys. (But calling
  LearningContextKey.from_string(...) will work for both course and library
  keys.)
* This commit introduces a slight regression for the Studio view of XBlocks in
  Blockstore content libraries: their state is now lost from request to request.
  I have a follow up PR to give them a proper studio-appropriate state store,
  but I want to review it separately so it doesn't hold up this PR and we can
  test this PR on its own.
2019-09-18 10:27:46 -04:00
Awais Qureshi
76bead175d BOM-437
Fixing python3
2019-09-18 19:20:06 +05:00
edX cache uploader bot
742c254562 Updating Bokchoy testing database cache (#21692) 2019-09-18 10:15:22 -04:00
aarif
1c0b78c0b3 python 3 fixes
minor fixes

minor changes
2019-09-18 18:10:14 +05:00
Aarif
530dadb1b0 Merge pull request #21682 from edx/BOM-485
BOM-485
2019-09-18 18:01:37 +05:00
Aarif
eaf3924b05 Merge pull request #21680 from edx/BOM-483
BOM-483
2019-09-18 18:01:00 +05:00
Feanil Patel
f43fd893f2 Merge pull request #21688 from edx/feanil/unpin-pip-tools
Feanil/unpin pip tools
2019-09-18 08:23:28 -04:00
Ayub khan
8133b82d3c BOM-432
python3 compatibility
2019-09-18 16:44:27 +05:00
aarif
8e7406493c python 3 fixes
test fixes

changes made as suggested

test fixes

test fixes for python 2

test fixes

python 3 fixes

test fixes

changes made as suggested

test fixes

test fixes for python 2

test fixes

minor fixes

python 3 fixes

minor changes
2019-09-18 16:42:37 +05:00
adeel khan
b3737ff95a Merge pull request #21670 from edx/adeel/prod_548_automate_args_simulate_publish_command
Adds config model to pass arguments to management command
2019-09-18 16:32:56 +05:00
Aarif
02570e9b29 Merge pull request #21686 from edx/BOM-486
BOM-486
2019-09-18 16:12:33 +05:00
Adeel Khan
98c6c1af49 Adds config models to pass arguments to management command
This would enable simulate_publish management command to
fetch its arguments from config model.

PROD-548
2019-09-18 11:42:02 +05:00
Ned Batchelder
bd207d47fc make upgrade 2019-09-17 17:37:20 -04:00
Ned Batchelder
de0afbfe96 Pin faker to get a consistent version for text-unidecode 2019-09-17 17:37:12 -04:00
Ned Batchelder
f7cd63f784 Convert bookmarks and certificates API docs to yasg format 2019-09-17 16:54:27 -04:00
Ned Batchelder
33e8f77867 Make notifier_api available at the correct url: /api/notifier 2019-09-17 16:54:27 -04:00
Ned Batchelder
d585a8f71d URLs and settings for OpenAPI generation
API docs are now always available, no more toggle to enable them.
2019-09-17 16:54:27 -04:00
Ned Batchelder
28d2788ade OpenAPI schema generation helpers with drf-yasg 2019-09-17 16:53:48 -04:00
Ned Batchelder
71e5faf307 make upgrade 2019-09-17 16:53:48 -04:00
Ned Batchelder
cdac1f4abb Doc tooling for static API docs 2019-09-17 16:53:07 -04:00
Michael Terry
d16bf75777 Merge pull request #21689 from edx/mikix/show-upgrade-deadline
Show Upgrade Deadline in Studio
2019-09-17 15:31:51 -04:00
Michael Terry
578a910260 Show Upgrade Deadline in Studio
This shows the verified upgrade deadline for the course, as a
read-only field.

DISCO-1345
2019-09-17 14:58:19 -04:00
Awais Qureshi
8997ba5fbb Merge pull request #21685 from edx/awais786/BOM-422
BOM-422
2019-09-17 22:58:34 +05:00
Awais Qureshi
269180d256 Merge pull request #21679 from edx/awais786/PROD-692
Awais786/prod 692
2019-09-17 22:57:04 +05:00
Ayub
78a22371c5 Merge pull request #21668 from edx/BOM-438
BOM-438
2019-09-17 22:42:22 +05:00