Calen Pennington
d23e888316
Revert "Reapply "Improve the performance of access checking for a specific user in CourseViewList by prefetching data""
...
This reverts commit 6059e21bff .
2019-03-21 14:26:00 -04:00
cclauss
bb31716c97
Use ==/!= to compare str, bytes, and int literals
2019-03-19 21:40:06 +01:00
Calen Pennington
6059e21bff
Reapply "Improve the performance of access checking for a specific user in CourseViewList by prefetching data"
...
This reverts commit d8cd6135a6 .
2019-03-18 15:24:40 -04:00
Calen Pennington
d8cd6135a6
Revert "Improve the performance of access checking for a specific user in CourseViewList by prefetching data"
...
This reverts commit a2a340bcd0 .
2019-03-14 10:31:24 -04:00
Calen Pennington
a2a340bcd0
Improve the performance of access checking for a specific user in CourseViewList by prefetching data
2019-03-11 10:37:53 -04:00
Julia Eskew
368f221f0a
Initial start on annotations.
2019-02-19 11:24:21 -05:00
Michael Youngstrom
4bbd1dee0b
Remove shards from commonlib-unit tests
2019-02-12 14:28:35 -05:00
Matthew Piatetsky
14a899a65d
REVE-104 & REVE-108: Ensure Course Roles' Access
2018-12-07 16:39:09 -05: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
David Ormsbee
ebbd262710
Modify forum roles query for Aurora performance.
...
This is a fix for the performance issues in EDUCATOR-3374
AWS's Aurora backend for MySQL selects the wrong index on the
django_comment_client_role_users table, leading to performance issues.
This commit replaces that join with individual requests for permissions
for each role (of which there may be several for any given user).
It's dumber SQL, but Aurora will do the right thing.
2018-08-31 16:34:53 -04:00
Kevin Falcone
a358b212bb
Merge pull request #18859 from edx/aed/revert-first-try
...
Revert "EDUCATOR-3374 | Hacky query to fix inline discussions performance."
2018-08-30 17:24:12 -04:00
Alex Dusenbery
e707804670
Revert "EDUCATOR-3374 | Hacky query to fix inline discussions performance."
...
This reverts commit 4a1caf6c03 .
2018-08-30 16:40:49 -04:00
Alex Dusenbery
d9f60cba7a
Add a (user_id, role_id) index to dcc_role_users table.
2018-08-30 16:40:25 -04:00
Alex Dusenbery
4a1caf6c03
EDUCATOR-3374 | Hacky query to fix inline discussions performance.
2018-08-29 20:17:54 -04:00
Jeremy Bowman
4241249119
TE-2524 Stop using nose.plugins
2018-07-30 21:11:05 -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
Douglas Hall
695b036282
Store Discussions ID Map on CourseDiscussionSettings model when course publish signal is fired.
2018-05-03 17:23:30 -04:00
Eric Fischer
e18448e27d
Silence deprecation warnings
...
https://docs.djangoproject.com/en/1.11/releases/1.10/#using-user-is-authenticated-and-user-is-anonymous-as-methods
2018-05-02 10:03:50 -04: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
Jeremy Bowman
d3d6272d8f
PLAT-1873 to_deprecated_string() cleanup part 1
2018-01-08 13:51:42 -05:00
Clinton Blackburn
69eeca61d8
Opening courseware to anonymous users
...
Anonymous users may now view units in the courseware. This access is limited to units that are not considered problems/graded (e.g. homework, exams).
2017-11-06 16:42:06 -05:00
Eric Fischer
93877890fc
EDUCATOR-1635 Log Role Creation
2017-11-06 13:56:27 -05:00
Aamish Baloch
7c3dab08a7
YONK-776: added thread_followed and thread_unfollowed signals
2017-10-09 19:14:38 +05:00
cahrens
819a56fee3
Remove usages of deprecated SlashSeparatedCourseKey.
2017-08-14 11:01:00 -04:00
Albert St. Aubin
6cdcf8e9b8
Discussion group moderation
2017-07-06 13:39:03 -04:00
cahrens
36c51450c2
Adds in radio button patch request and text for page
...
EDUCATOR-229
2017-06-05 13:00:31 -04:00
cahrens
8951ac8c61
Refactor server-size code to enable enrollment tracks.
...
EDUCATOR-11
2017-06-05 12:59:50 -04:00
Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
J. Cliff Dyer
b796ba1900
Add missing migrations
2016-11-17 12:11:25 -05:00
Toby Lawrence
f29a508d4f
Merge pull request #13928 from edx/bugfix/forums-enable-data-migration
...
Provide a default configuration for forums if none already exists.
2016-11-08 09:16:56 -05:00
Toby Lawrence
3969f0cad9
Provide a default configuration for forums if none already exists.
2016-11-07 14:02:17 -05:00
Toby Lawrence
2acb4a6cad
[PERF-386] Utilize ForumsConfig to enable and disable forums.
...
This specifically enables/disables the underlying comment service client
used to make calls to the service. When disabled, this client will now
throw an exception which can be propagated upwards so that callers can
make the right decision about how to notify users of the error, or
handle retry, etc etc.
2016-11-03 10:20:19 -04:00
John Eskew
3614eb2800
Move xmodule_django app to openedx.core.djangoapps
2016-10-06 14:50:40 -04:00
Matjaz Gregoric
8dc84bec3a
Enable discussions on CCX courses.
...
Discussion is restricted to the CCX course (there is no sharing of
discussions with the parent course or other CCX instances).
2016-09-12 09:51:05 +02:00
David Ormsbee
255267d42c
Create forums config model for adjusting connection timeouts.
2016-06-16 13:50:13 -04:00
Ned Batchelder
f5d0f3ff55
Remove useless pylint suppressions
2015-11-22 07:41:19 -05:00
Usman Khalid
6cb62f2697
Rebase upgrade Django to v1.8.5
...
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
Ned Batchelder
322ca34b20
Remove pylint pragmas from "class Meta"
...
Also remove useless docstrings where they were added to keep pylint
quiet.
2015-10-21 07:37:00 -04:00
Peter Fogg
38fb6eaede
Add signals for user's discussion activity.
...
These signals are caught by the Teams app and used to update
`last_activity_at` on both teams and individual users.
TNL-2497
2015-08-26 12:07:54 -04:00
Diana Huang
c12c2933a7
Make context for threads more implicit.
2015-07-31 08:58:01 -04:00
Sarina Canelake
22bbdacee9
Convert Meta classes to new-style classes
2015-07-13 17:33:26 -04:00
David Ormsbee
b92ad0ad13
TNL-2291 Add caching to discussion forum permissions
...
Caches all permissions per user per course. Adds caching functionality to has_permission and replaces all instances of cached_has_permission with has_permission.
2015-06-17 21:08:28 +00:00
Ned Batchelder
78e9445aa1
Add super() calls to setUp/tearDown that are missing them
...
Also, I replaced a number of tearDown methods with addCleanup instead.
And also remove some unneeded patch.stopall() calls.
2015-05-14 18:14:21 -04:00
David Baumgold
4152f5e4e8
Address pylint issue from diff-cover
2014-12-11 13:09:23 -05:00
David Baumgold
36e77c7463
Fixing pep8 issues
2014-12-11 13:04:49 -05:00
stv
829be1e9cb
Fix PEP8: E502 the backslash is redundant
...
between brackets
2014-11-25 10:16:04 -05:00
stv
0d2754d8d1
Fix PEP8: E502 the backslash is redundant
...
between brackets
2014-11-24 20:48:05 -05:00