Commit Graph

190 Commits

Author SHA1 Message Date
Nimisha Asthagiri
afdecc77fd course_structures: remove app code, except migrations and models 2018-07-02 12:40:25 -04:00
Tyler Hallada
1540f9ec72 Add on_delete kwarg to ForeignKey & OneToOneFields
Django 2.0 will make this field required for `ForeignKey` and `OneToOneFields`.
In previous versions the option defaulted to `models.CASCADE` when not
specified. This change should make the deprecation warnings in the current
Django version go away.

The migrations where also modified, but the changes should not cause a change in
the database schema since `models.CASCADE` was already the old default.
2018-06-05 17:05:12 -04:00
Kabir Khan
c0f353467e V1 Grades API with added support for bulk read of all user grades in a course.
URL patterns changed to follow edx API conventions
2018-05-03 10:23:33 -07:00
David Ormsbee
71ef28d3d6 Add simulate_publish management command
Prior to this commit, any apps that update their data when courses are
published had to create their own management commands for bootstrapping
or error recovery (e.g. generate_course_overviews,
generate_course_blocks). This is a management command to allow us to
generically simulate a course_publish signal so that any async tasks
that trigger actions off of that can do so without having to each write
their own management commands.

It has a few options to make it more ops friendly:

* Can specify a set of courses, but defaults to all courses in the
  modulestore.
* Can specify a set of listeners, so we can bootstrap a new app without
  rebuilding everything.
* Can specify a delay between emitting signals so that we don't flood
  the queues and block author-initiated publishes from going through in
  a timely manner.
* Dry-run mode for a simple preview of what the script will attempt.
2018-05-01 13:53:54 -04:00
Nimisha Asthagiri
57ecda7f71 Remove CourseStructure usage in CourseGraph 2018-04-13 14:44:19 -04:00
Eric Fischer
242ac4c9cd Remove PRUNE_OLD_VERSIONS waffle flag 2018-03-23 12:41:08 -04:00
Amir Qayyum Khan
aa6f88382d Fixed edX block structure api to load override data 2018-02-16 11:10:17 +05:00
Jeremy Bowman
bf86b3da98 PLAT-1942 Handle xmodule_django field deprecations 2018-02-05 15:05:54 -05:00
Jeremy Bowman
5289c7e828 PLAT-1915 Stop using deprecated BaseException.message 2018-01-31 17:22:01 -05:00
Qubad786
64555c60c0 Move request_cache to openedx.core.djangoapps 2018-01-26 15:09:25 +05:00
Nimisha Asthagiri
75c3e865a4 Move COURSE_PACING_CHANGED signal 2018-01-19 15:12:29 -05:00
Nimisha Asthagiri
5430b3633f Move COURSE_START_DATE_CHANGED signal 2018-01-18 11:48:24 -05:00
Nimisha Asthagiri
a37d09aefb Move PluginManager out of api folder 2018-01-08 19:15:23 -05:00
bmedx
39ad7efcbf Add a fix to CourseOverviews::pre_requisite_courses 2017-12-27 13:42:42 -05:00
Tomasz Gargas
d4edf33f09 Remove a check for READ_VERSION==0 in BlockStructureBlockData._add_transformer.
Signed-off-by: Tomasz Gargas <tomasz@opencraft.com>
2017-12-12 14:22:10 +01:00
Nimisha Asthagiri
549f4b661e Schedules: Add celery task logging 2017-12-04 14:16:27 -05:00
Nimisha Asthagiri
7a6805b261 Merge pull request #16714 from edx/pacing/spanish-language-issue
Schedules: course language -> closest released language
2017-11-30 10:47:53 -05:00
Awais Jibran
f72d44d38a Add Course ID in logging 2017-11-30 13:48:06 +05:00
Nimisha Asthagiri
38cfadeb20 Schedules: convert course language to supported released language 2017-11-29 20:08:33 -05:00
Ned Batchelder
e23e3a0486 Fix a number of unused-import pylint violations 2017-11-21 19:57:06 -05:00
Gabe Mulley
a6387c0e5f log changes to the start date 2017-11-17 13:34:15 -05:00
Jose Antonio Gonzalez
f38e5ab939 add DEFAULT_MOBILE_AVAILABLE flag 2017-11-16 16:50:37 +02:00
John Eskew
27315f442a Move more mgmt commands from optparse to argparse. 2017-11-14 11:26:46 -05:00
Nimisha Asthagiri
e7f8a592dd Sync course language: Discovery Course Catalog -> LMS Course Overview 2017-11-08 21:42:05 -05:00
John Eskew
d6f8772031 Move course_overviews startup.py over to AppConfig::ready 2017-11-03 12:47:59 -04:00
Jillian Vogel
ae15e69a0a Fixes bug with Course Blocks API student_view_data parameter
Prior to this change, providing any student_view_data querystring would result
in student_view_data returned for all XBlock types.

Updates Course Blocks API tests to verify.
2017-11-01 13:38:54 +10:30
Brian Beggs
3608b86273 Merge pull request #16309 from edx/bbeggs/PLAT-1411
Replace SubfieldBase functionality PLAT-1411
2017-10-27 10:41:32 -04:00
Brian Beggs
ca92ffe21d Remove SubfieldBase metaclass 2017-10-26 16:59:51 -04:00
Calen Pennington
fa7b9a132a Move the org_list and exclude code into the resolvers 2017-10-25 09:10:16 -04:00
Tyler Hallada
5bfb322f1e Don't send RET emails after course end 2017-10-16 11:11:16 -04:00
Simon Chen
29a1df3323 Revert "Exposing course run license via Course API"
This reverts commit a1419b15f7.
2017-10-11 12:37:09 -04:00
Clinton Blackburn
a1419b15f7 Exposing course run license via Course API
The license for course run content is now stored on the CourseOverviews model and exposed via the Course API.

LEARNER-2791
2017-10-08 19:47:32 -04:00
Troy Sankey
46d8caa8cd Remove/update comments related to django 1.4
Course keys as PKs don't appear to break detail links in admin pages
anymore.
2017-10-05 15:35:01 -04:00
Alex Dusenbery
00dadc3a3a EDUCATOR-1402 | Fix flaky generate_course_overview test. 2017-09-22 09:59:56 -04:00
Alex Dusenbery
d89afa0832 EDUCATOR-1207 | Run generate_course_overview command via celery task, in batches. 2017-09-21 11:26:59 -04:00
Calen Pennington
cd4ebaf23c Only send one email even if there are multiple enrollments by the same user on the same day 2017-09-12 08:23:21 -04:00
Nimisha Asthagiri
5193649956 Update Schedules when start date changes on non-live courses 2017-09-10 08:41:26 -04:00
Jeremy Bowman
fd6af6b05e ddt usage cleanup 2017-09-05 17:25:51 -04:00
Gabe Mulley
6a36eb0183 Use ACE to 'send' Recurring Nudge emails 2017-08-31 16:58:08 -04:00
Jeremy Bowman
32000c7a98 Clean up TestCase subclassing 2017-08-29 15:38:48 -04:00
Jeremy Bowman
0d7806e0cd Fix tests that depend on execution order 2017-08-29 11:08:47 -04:00
Alex Dusenbery
9009a5b0d3 may_certify_for_course checks if course is self_paced. 2017-08-25 14:37:53 -04:00
Sofiya Semenova
ffd72c1051 Merge pull request #15705 from edx/ssemenova/ed-526
EDUCATOR-526 Update view certificate button
2017-08-16 15:52:54 -04:00
Sofiya Semenova
76f1df6b0e EDUCATOR-526 Update view cert button to only appear after availability
date has passed
2017-08-15 11:57:28 -07:00
Nimisha Asthagiri
987ef9dc9d Prevent high mem usage in generate_course_overview. 2017-08-15 12:11:41 -04:00
bmedx
48e6e552f2 PLAT-1633: Upgrade django-ratelimit-backend to 1.1.1 2017-08-07 15:34:21 -04:00
Nimisha Asthagiri
944d30a973 Add force_update option to generate_course_overview command 2017-08-05 11:36:55 -04:00
David Ormsbee
39a7c09512 Re-add to BlockStructure cache on miss.
BlockStructures are stored in S3, but they're cached in memcached. Prior
to this commit, they were only written to memcached when first created.
This commit adds a write to repopulate the cache entry every time there
is a cache miss. Hopefully, this will help reduce the miss rate we're
seeing.
2017-07-27 11:13:00 -04:00
Sarah Fischmann
eafb79defc Added lang attribute in LMS and Studio; added language col to course_overviews
Added course level lang attribute for LMS

added lang attribute to Studio

fixed error when trying to get language attribute on course that does not exist

simplified code

added lang attribure to more places in LMS, added migration for language attribute in course_overview

fixing contraints in the database for language attribute

added lang attribute to several more places in LMS and Studio

added lang attribute to discussion and custom pages; cleaned up code

fixed issue that was causing test failures

moved lang attribute higher in tree in two places
2017-06-13 14:42:29 -04:00
Robert Raposa
eaab2cf444 Add course overrides of waffle flags. 2017-06-01 15:12:50 -04:00