Added update_item, create_item, create_child to split_draft.py
Cleaned up TODOs in test_mixed_modulestore.py
Unit test for auto-publish
LMS-11017
Added tests to test_mixed_modulestore.py for has_changes and added black_list to _auto_publish
Moved DIRECT_ONLY_CATEGORIES to draft_and_publish.py
Deleted test_split_draft_modulestore.py
Added _auto_publish to create course
Publish cleanups for update_version, source_version
Changed has_changes to use source_version
Removing mixed test that no longer makes sense in auto_publish world
Addressed TODOs in test_branch_setting
do the import from wherever it unpacked.
Avoids an exception where the top-level dir had a subdir of same name
as one being moved, but also just makes it faster.
In Studio, when the course administrator creates a new tab, its name was being
initialized as null in the mongo database. This caused students in LMS to get a
server error when trying to access the course page, since LMS was trying to
process the null tabname for translation, etc. Now tabname is initialized as
'Empty', which is how it was being done in the frontend.
STUD-2000
Some users erroneously set their password as their username with the original layout, because the username field directly followed the password field. Users may be accustomed to the common occurrence of a password confirmation field directly following the password field.
To fix the issue, I did the following:
- Moved the existing username and real name form fields above the password field.
- Added a validation in the create_account handler in common/djangoapps/student/views.py, which confirms that the password field does not match the username field.
New tests created to check the added functionality.
Currently a new temp directory is created for every process via
mkdtemp_clean() which cleans it on process exit.
However, this is not compatible with using --preload option of
gunicorn. With this option the tmp directory is created on gunicorn
start and is shared by all the workers. But when a worker exits it
deletes the directory. And so on the next requent the tmp directory
needs to be recreated and the templates need to be recompiled.
LMS-6507
The same bug in studio was fixed in #3893, and as TinyMCE is also used in LMS, it should be also fixed in LMS.
Here a common javascript file called 'ie_shim.js' is added, so that in the future it can be used for other IE compatibility purposes too.