Troy Sankey
18deacde54
Revert "Revert "This stage does the following: ( #22692 )""
...
This reverts commit 84de6bc6de
which reverts commit cebeab4348
which implements the first stage of the `values` column rename in
SiteConfiguration. However, I included a small change:
This time, we set a default value on the new `site_values` column so
that the ORM will happily deserialize the JSONField without throwing a
JSONDecodeError.
2020-02-19 12:01:57 -05:00
Jansen Kantor
25baa93af9
EDUCATOR-4877: Implement stubbed API functions using new config values ( #22913 )
...
add stubbed api functions, tests
2020-01-24 15:54:32 -05:00
Julia Eskew
84de6bc6de
Revert "This stage does the following: ( #22692 )"
...
This reverts commit cebeab4348 .
2020-01-14 13:01:21 -05:00
Julia Eskew
cebeab4348
This stage does the following: ( #22692 )
...
- Adds the new field and migration to create the column.
- Makes all writes go to both old and new field.
2020-01-14 10:40:39 -05:00
David Ormsbee
2cb2265ffe
Add request caching to reduce ORM queries
...
This adds request caching to the following places:
* course expiration wrapper (displayed in Units)
* offer banner generation (displayed in Units)
* get_enrollment
* user_by_anonymous_id
* youtube_disabled_for_course
On a sample course with edx-val enabled, this reduced the queries
for a large sequence from 450 to 155.
2019-12-30 16:19:25 -05:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Matthew Piatetsky
bd76a71019
delete old holdback code
2019-11-07 09:51:39 -05:00
Kyle McCormick
7dbee1c3dd
Ensure Python 3 compatibility of Teams djangoapp ( #22096 )
...
* For all files, from __future__ import unicode_literals.
* Add @python_2_unicode_compatible to both models.
* Test six.string_type(obj) for both models.
Also, fix some new pylint warnings and improve model repr methods.
MST-24
2019-10-22 13:42:27 -04:00
Kyle McCormick
cd3bc236eb
Make the team discussion thread private
...
Develop the capability to allow instructors to designate teams to have private discussions. This way, so non-teammembers cannot view discussion. And the intend is for course teams to manage the team membership as well.
MST-10
2019-10-18 13:06:50 -04:00
Nimisha Asthagiri
4914c42364
Python 3: resp.content regex searches
2019-09-30 08:51:02 -04:00
Ayub khan
06c7e3e4e9
BOM-420
...
fixed all file tests
2019-09-13 18:39:00 +05:00
Feanil Patel
68933ec089
Fix quality issues.
2019-08-19 11:51:30 -04:00
David Ormsbee
9a1385585f
Convert response bytes to str before JSON parsing. ( #21375 )
...
Convert response bytes to str before JSON parsing.
2019-08-19 11:01:55 -04:00
Feanil Patel
9d7f0ca46e
Get LMS test collection working in python 3.
...
This should be all the changes needed to get test collection working in
python 3 for the `lms` folder.
2019-08-13 16:32:40 -04:00
Jeremy Bowman
ff7292538e
More pylint fixes ( #20692 )
2019-05-28 09:19:31 -04:00
Stu Young
51948f8895
INCR-306 Run python-modernize on lms/djangoapps/discussion/settings and lms/djangoapps/discussion/tests ( #20619 )
...
* run python modernize
* run isort
* Fix quality
2019-05-21 11:44:00 -04:00
Nimisha Asthagiri
dfa3728edf
Move django_comment_common from common to openedx
2019-05-03 12:10:18 -04:00
Nimisha Asthagiri
e160b23903
Move django_comment_client to discussion/
2019-05-03 12:09:46 -04:00
Nimisha Asthagiri
16edae0822
Move comment_client into django_comment_common
2019-05-03 12:07:20 -04:00
Nimisha Asthagiri
ef0e06cc0a
Revert "Discussions consolidation"
2019-05-02 14:59:56 -04:00
Nimisha Asthagiri
df962a31b7
Move django_comment_common to openedx/core/djangoapps/discussion_common
2019-05-01 19:15:02 -04:00
Nimisha Asthagiri
db89a64d06
Move django_comment_client to discussion/
2019-05-01 19:13:10 -04:00
Nimisha Asthagiri
2839851bde
Move comment_client into django_comment_common
2019-05-01 19:13:09 -04:00
Calen Pennington
4c8cd60bbc
REVMI-96: Add a management command to experiment with Access Expiry reminder emails for FBE
2019-03-06 11:44:29 -05:00
Calen Pennington
300c3a34dd
Don't swallow exceptions inside emulate_http_request
2019-03-06 11:44:29 -05:00
Michael Youngstrom
3221c2b91f
Remove lms pytest shards
2019-02-12 11:03:46 -05:00
Matthew Piatetsky
6e81c84d8b
fix unicode strings in lms/ part 1
2019-02-05 15:15:02 -05:00
Matthew Piatetsky
14a899a65d
REVE-104 & REVE-108: Ensure Course Roles' Access
2018-12-07 16:39:09 -05:00
brianhw
acc919ca46
Merge pull request #19353 from edx/brian/DE-1121-email-context
...
Add page context to edx.bi.email.sent events
2018-12-04 12:10:27 -05:00
Brian Wilson
f21bf05e37
Add page context to edx.bi.email.sent events.
2018-12-04 02:47:37 -05:00
Calen Pennington
31047260cc
Switch ContentTypeGatingConfig.enabled_as_of and CourseDurationLimitConfig.enabled_as_of to datetimes
2018-11-30 10:02:53 -05:00
Matthew Piatetsky
815acda002
Populate experiment data with holdback key post enrollment and check holdback key when setting user group
2018-11-28 13:40:57 -05:00
Alex Dusenbery
44101d656d
Pick a better ordering field for CourseEnrollmentPagination in grades API.
2018-11-27 12:39:12 -05:00
Calen Pennington
0cb48dfe1c
Add StackedConfigurationModels for managing content_type_gating and course_duration_limits
2018-11-21 12:18:10 -05:00
Ned Batchelder
8acea435cf
setUpClassAndTestData is tricker than pylint understands
2018-11-02 11:06:59 -04:00
Matthew Piatetsky
9037999bd2
add content gating waffle flag
2018-10-22 20:49:08 -04:00
Matthew Piatetsky
3e87cb7c7d
fix expired message on dashboard and some of the tests
2018-10-17 09:20:45 -04:00
rabiaiftikhar
aac430da34
EDUCATOR-3213 make Global EdX Staff able to view all forum posts
2018-10-10 12:01:23 +05:00
Nimisha Asthagiri
700a902b68
Cleanup and remove deprecated RequestCache Django app
...
ARCH-223
2018-09-12 14:39:11 -04:00
Robert Raposa
ba4cc62ff8
Retire deprecated RequestCache (Take 2)
...
ARCH-223
2018-09-08 15:09:28 -04:00
rabiaiftikhar
f3cc1d83fc
EDUCATOR-3385 fix attribute error in discussion response notification
2018-09-04 23:10:57 +05:00
Nimisha Asthagiri
4ca165f690
Revert "ARCH-223: Retire deprecated RequestCache."
2018-08-30 16:33:03 -04:00
Robert Raposa
3df339a56a
Retire deprecated RequestCache.
...
ARCH-223
2018-08-30 08:55:19 -04:00
Jeremy Bowman
1a5bf35357
TE-2689 Remove useless pylint suppressions part 2
2018-08-14 17:39:02 -04:00
rabiaiftikhar
1f34924573
EDUCATOR-2120 allow Community TA to see all discussion posts regardless of cohort and enrollment track
2018-08-09 17:53:39 +05:00
Jeremy Bowman
bcaec3c5bb
TE-2525 nose.tools removal part 1/2
2018-08-07 08:30:12 -04:00
David Ormsbee
72ed987dff
Enable model-caching of discussions ID mapping.
...
Doing modulestore lookups is expensive, so commit 695b036 created a
course_publish listener that would materialize the discussion ID to
XBlock usage key mapping into the CourseDiscussionSettings model.
However, the signal wasn't hooked up to the Studio process, so that
async task was never called. When hooking it up, I also discovered that
bok choy tests related to partitioning were failing because of a race
condition where multiple processes are overwriting the discussion
settings. To make sure this wasn't an issue, I moved the mapping to
its own table.
This is part of ARCH-111, and the overall Course Structures API
deprecation.
2018-06-13 08:21:08 -04:00
Eric Fischer
247bb50ed2
s/django.core.urlresolvers/django.urls/g
...
Django 1.10 deprecation fix for Hackathon XIX
Addresses PLAT-1397
2018-06-05 13:59:09 -04:00