Mat Peterson
4f6088cbd1
Fixed some isinstance errors with opaque-keys
2014-07-11 15:40:08 -04:00
Nimisha Asthagiri
8855b12b76
Update tests to allow LMS tests to use published branch setting.
...
Conflicts:
cms/djangoapps/contentstore/views/tests/test_container_page.py
common/djangoapps/external_auth/tests/test_shib.py
common/djangoapps/student/tests/test_login.py
common/lib/xmodule/xmodule/modulestore/tests/django_utils.py
common/lib/xmodule/xmodule/modulestore/tests/factories.py
common/lib/xmodule/xmodule/modulestore/xml_importer.py
lms/djangoapps/branding/tests.py
lms/djangoapps/courseware/tests/test_submitting_problems.py
lms/djangoapps/courseware/tests/test_video_handlers.py
lms/djangoapps/instructor_task/tests/test_base.py
lms/djangoapps/instructor_task/tests/test_integration.py
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
ea32529866
Fix all modulestore calls to pass in user ids.
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
a9213509c3
Enable Mixed Modulestore STUD-1540
...
Refactor get_parent_locations STUD-1663
2014-06-26 18:00:11 -04:00
Sarina Canelake
0f2b4cd2b6
Merge pull request #3931 from edx/sarina/fixup-external-opaque-keys-impls
...
Use external OpaqueKey implementations
2014-05-29 18:23:08 -04:00
Calen Pennington
cfcbdc0145
Move to OpaqueKey implementations from the external library
...
[LMS-2757]
2014-05-29 17:03:35 -04:00
Adam Palay
5b769df452
No longer chunk queries when sending out bulk email (LMS-2718)
...
refactor _generate_items_for_subtask not to chunk queries
use django's iterator methor for querysets
remove bulk email query settings
use read_replica if available, since this is read-only
update changelog
2014-05-29 09:10:25 -04:00
Calen Pennington
155ffe37ca
Merge remote-tracking branch 'edx/master' into opaque-keys-merge-master
...
Conflicts:
cms/djangoapps/contentstore/views/item.py
cms/djangoapps/contentstore/views/tests/test_container.py
cms/djangoapps/contentstore/views/tests/test_tabs.py
common/lib/xmodule/xmodule/modulestore/mongo/draft.py
lms/djangoapps/certificates/management/commands/gen_cert_report.py
lms/djangoapps/certificates/queue.py
lms/djangoapps/certificates/views.py
lms/djangoapps/courseware/module_render.py
lms/djangoapps/courseware/tests/test_module_render.py
lms/djangoapps/instructor/views/api.py
lms/djangoapps/instructor/views/instructor_dashboard.py
lms/djangoapps/instructor/views/legacy.py
lms/djangoapps/shoppingcart/tests/test_models.py
lms/djangoapps/verify_student/views.py
2014-05-09 15:29:32 -04:00
Don Mitchell
7be81341d7
Revert StudentModule.module_state_key to field rather than computed property
2014-05-09 10:41:12 -04:00
Calen Pennington
eb11ba76a7
Better unicode handling in instructor tasks/bulk-email
2014-05-09 09:23:51 -04:00
Calen Pennington
cd746bf8e5
Make course ids and usage ids opaque to LMS and Studio [partial commit]
...
This commit adds the non-courseware lms/djangoapps and lms/lib.
These keys are now objects with a limited interface, and the particular
internal representation is managed by the data storage layer (the
modulestore).
For the LMS, there should be no outward-facing changes to the system.
The keys are, for now, a change to internal representation only. For
Studio, the new serialized form of the keys is used in urls, to allow
for further migration in the future.
Co-Author: Andy Armstrong <andya@edx.org >
Co-Author: Christina Roberts <christina@edx.org >
Co-Author: David Baumgold <db@edx.org >
Co-Author: Diana Huang <dkh@edx.org >
Co-Author: Don Mitchell <dmitchell@edx.org >
Co-Author: Julia Hansbrough <julia@edx.org >
Co-Author: Nimisha Asthagiri <nasthagiri@edx.org >
Co-Author: Sarina Canelake <sarina@edx.org >
[LMS-2370]
2014-05-08 12:09:23 -04:00
David Ormsbee
09bc765c6e
Add admin.py for instructor_task.
...
This is primarily so that we can manually fail zombie instructor
tasks that are clogging up the queue for a course.
2014-05-01 09:50:07 -04:00
Gabe Mulley
d0b12ee3be
Generalize grade report to allow display of any report
...
We would like to be able to generate arbitrary reports and expose them to the instructor by simply uploading them to S3. The existing grade download infrastructure pretty much supported that already, however, all of the internal and external structures were referring to the reports as exclusively grading related.
Fixes: AN-590
2014-03-11 10:14:37 -04:00
Don Mitchell
b8ea7f3c43
update_item and other refactorings continued
2014-02-05 10:24:24 -05:00
Don Mitchell
c601b75675
MixedModulestore wraps most getters, update_item, delete_item
...
with code to translate between addressing schemes based on app
and persistence layer addressing scheme specification.
STUD-1206
2014-02-05 09:34:30 -05:00
Usman Khalid
95a112a3dd
instructor_task: Distribute extra items among subtasks of last query.
...
When creating an instructor task total_num_items may change between the
time it and the number of subtasks is calculated and the time the
subtasks are actually queued (all of this cannot happen in one transaction).
In such a case the extra items are distributed among the subtasks of the
last query.
LMS-2090
2014-02-04 23:30:02 +05:00
Jay Zoldak
9c4a9d8f64
Make code safe for unicode course ids
2014-01-31 16:35:56 -05:00
Sarina Canelake
3584b246dd
Translate strings in xmodule/capa_*.py
...
LMS-1744
2014-01-17 15:01:59 -05:00
Sarina Canelake
fa856d3338
Logging to catch duplicate instructor tasks
2014-01-06 18:20:41 -05:00
David Baumgold
d15391fdfa
Update factory_boy to 2.2.1
2013-12-05 15:50:49 -05:00
Sarina Canelake
0426e51d06
Encode header row (LMS-197)
2013-12-03 18:10:13 -05:00
David Ormsbee
a99fd08004
Fix error case where we have items in our grading csv output
...
that are not present in a given student's gradeset.
General code cleanup and addition of comments.
Instructor dashboard API unit tests.
LMS-58
2013-11-22 10:06:28 -05:00
David Ormsbee
e0aa8cf78a
Grade report celery task and direct file push to S3 from the new instructor dashboard.
...
Hook up display of grade files ready for download to new instructor dashboard.
LMS-58
2013-11-22 10:06:10 -05:00
Calen Pennington
864d831ce3
Use XBlock handlers for handle_ajax in XModules
...
Adds xblock handler_url support to the LMS, and makes handle_ajax use
that code.
[LMS-230] [LMS-229]
2013-11-08 11:08:48 -05:00
Brian Wilson
7bef11a7f1
Add retries when encountering DatabaseError when updating InstructorTask.
2013-11-05 11:18:08 -05:00
Brian Wilson
782a07e0ea
Add datadog stats for duplicate subtask and subtask update errors.
2013-10-30 17:09:40 -04:00
Brian Wilson
5b48ed840b
Refactor subtask creation logic to be less email-specific.
2013-10-28 12:58:11 -04:00
Brian Wilson
0f8f82c845
Define and use SubtaskStatus class.
2013-10-28 12:57:41 -04:00
Brian Wilson
ed4b954a53
Remove the use of celery.group from bulk email subtasks.
2013-10-28 12:47:11 -04:00
Brian Wilson
16b85c0c2a
Check for requeued subtasks when in RETRY state.
2013-10-22 18:17:00 -04:00
Brian Wilson
ecb58e863f
Add cache-based locking to subtasks to ensure that the same task is not running in two workers at the same time.
2013-10-22 14:32:52 -04:00
Brian Wilson
aa172272f3
Update master with hotfixes from release-2013-10-17.
2013-10-18 11:50:42 -04:00
Brian Wilson
a699674015
Check that a subtask has not already completed before running.
2013-10-17 13:32:44 -04:00
Brian Wilson
b8239068cb
Check that email subtasks are known to the InstructorTask before executing.
2013-10-16 13:02:41 -04:00
Brian Wilson
bc599a0662
Update tests with more complete coverage.
2013-10-16 13:02:40 -04:00
Brian Wilson
e75dd4654b
Move subtask update logic that was only needed for tests into the tests that needed it.
2013-10-16 13:02:40 -04:00
Brian Wilson
eaec962de9
Internationalize task progress.
2013-10-16 13:01:59 -04:00
Brian Wilson
04f90fee41
Fix subtask code to handle (tests) running in eager mode.
2013-10-16 13:01:59 -04:00
Brian Wilson
a4c35ac4ff
Use separate retry count for calculating retry delay.
2013-10-16 13:01:59 -04:00
Brian Wilson
7b7afd472d
Incorporate changes in max_retry logic, adding subtask_status as bulk_email arg.
2013-10-16 13:01:59 -04:00
Brian Wilson
08a08448ee
Add some handling for SES exceptions.
2013-10-16 13:01:59 -04:00
Brian Wilson
0fd75181e3
Update handling of bulk-email retries to update InstructorTask before each retry.
2013-10-16 13:01:58 -04:00
Brian Wilson
7988b71b09
Move updates for InstructorTask into BaseInstructorTask abstract class.
2013-10-16 13:01:58 -04:00
Brian Wilson
5c29530db9
Factor out subtask-specific code into subtasks.py.
2013-10-16 13:01:58 -04:00
Brian Wilson
01611c33a6
Refactor instructor_task tests, and add handling for general errors in bulk_email subtasks.
2013-10-16 13:01:58 -04:00
Brian Wilson
2f4774f47c
Pass status into course_email for tracking retry status.
2013-10-16 13:01:58 -04:00
Brian Wilson
ffbb228acb
Add support for counting and reporting skips in background tasks.
2013-10-16 13:01:58 -04:00
Brian Wilson
8fddcdffcd
Initial refactoring for bulk_email monitoring.
2013-10-16 13:01:57 -04:00
Brian Wilson
288ccb1e36
Check that email subtasks are known to the InstructorTask before executing.
2013-10-15 18:34:31 -04:00
Brian Wilson
03b4330c04
Update tests with more complete coverage.
2013-10-10 15:34:16 -04:00