The print_out_all_courses() routine consumes a ton of memory (2G and
causes noticable mongo usage spikes). This actually causes other
processes on production boxes to be memory starved and killed
(such as worker children on edge when this was run recently).
The behavior of this script on production is
* Print several hundred courses
* Ask if you want to delete the one you specified
* print several hundred courses minus one
On a sandbox with 5 courses, you could tell by eye that 1 is gone, but
not in production (or even in stage).
The original PLAT-619 ticket for this suggested printing a course
listing on error, but instead it always printed the course listing.
Even in the error case, hundreds of course ids is confusing and obscures
the error message saying that your course_id is invalid.
You should be getting the course id from the UI or from ./manage.py lms
dump_course_ids, not by searching a list.
Adjusted the test accordingly
Remove get_courses_keys
The old line:
from path import path
produced pylint errors because of the baroque way that path.py defined
"path". We tried to get them to change how they defined it, but they
deleted the name instead: https://github.com/jaraco/path.py/issues/102
(Jason then changed his mind, but this is a better way to use path.py,
it avoids the pylint error at least.)
Also added reset_test_case() and @modifies_courseware to SharedModuleStoreTestCase.
Revert "More verbose test builds in Jenkins, for debugging."
This reverts commit 58cade4cc4288335026649470a48b7bbca969ee8.
There's a move afoot to put assets inside individual Django apps,
instead of in upper-level "templates" directories. These i18n
configuration files have to take this into account.
.underscore files are easy to find by their unique file extension, so
the rule can be simple. Mako files are .html, so we have to be more
nuanced about it. We don't want to get pure HTML files, and we don't
want to get .html files for tests, even if they are Mako templates.
* Automatically create user partitions on course publish for each ICRV checkpoint.
* Disable partitions for ICRV checkpoints that have been deleted.
* Skip partitions that have been disabled when checking access.
* Add verification access control UI to visibility settings.
* Add verification access control UI to sequential and vertical settings.
* Add partition scheme for verification partition groups.
* Cache information used by verification partition scheme and invalidate the cache on update.
* Add location parameter to UserPartition so the partition scheme can find the associated checkpoint.
* Refactor GroupConfiguration to allow multiple user partitions.
* Add special messaging to ICRV for students in the honor track.
Authors: Zubair Arbi, Awais Qureshi, Aamir Khan, Will Daly
Squashed commit of the following:
commit 0f7c2af5f7b8caed575dd253a45299293b2729d7
Author: Colin-Fredericks <colin.fredericks@gmail.com>
Date: Tue Jun 30 12:04:43 2015 -0400
Forgot icon
commit b48970392741130f774709c54eb6e5ab0089812c
Author: Colin-Fredericks <colin.fredericks@gmail.com>
Date: Tue Jun 30 11:49:57 2015 -0400
OSPR-535 Partial Credit
Squashed commit of the following:
commit 6dd34f58f994e32d0d54bf1d67bffd04e0f8ef08
Author: Colin-Fredericks <cof945@dhcp-140-247-184-176.fas.harvard.edu>
Date: Tue Jun 30 11:44:01 2015 -0400
Fixing accidental overwrite.
commit 1ff8fc4b0e83b90356e8e8dce1022f49bfd162cf
Author: Colin-Fredericks <cof945@dhcp-140-247-184-176.fas.harvard.edu>
Date: Tue Jun 30 11:18:36 2015 -0400
OSPR-535 Partial Credit
Revised after first pull discussion.
Fixing scss typos
Fixing check/x display problem
Empty set is not []
Shuffling empty answer code to grade properly.
I don't think I ever wrote this in the first place...
Adding tests for MC and Checkbox
including proper partial-credit marking and scoring
Numerical and OptionResponse tests
Also a few improvements to NumericalResponse problem type and
exception-raising.
CustomResponse tests and more numerical tests
Increasing coverage and fixing typos
Exception added for pylint false positive
Hopefully fixing coverage issue
Retabulating line continuation
Bok Choy test for partial credit
Copypasta fix
Adding tooltip for partial credit
Improving and expanding comments
Minor fixes
If code is deployed that updates the user partition version,
then the code is rolled back, we may see user partition versions
greater than the currently deployed version.
The previous behavior was to raise a TypeError when this occurred;
the new behavior assumes that the newer version is backwards
compatible and tries to load the partition.