Toby Lawrence
6704e17afd
[TNL-5632] Optimize the single_thread view.
...
Firstly, we're now explicitly instructing the comments service to not
return thread responses/comments if the request isn't AJAX. So, if you
load the URL for a single discussion thread in your browser, this would
be a non-AJAX call and we'll avoid loading the responses for the entire
thread behind-the-scenes. Big win here for large threads.
Next, we removed a redundant "get threads" call which was also happening
behind-the-scenes. This call was redundant as the front-end JS also
grabs the thread list when a topic is chosen, so we were making an
extranenous call for no benefit. Poof, gone!
Finally, we added some caching of database queries that are required to
drive a lot of the permissions/cohorts machinery around discussion.
This will have a minimal effect but introduced a cleaner way to apply
general memoization at the per-request level which will let us further
cache things as we identify them as issues.
2016-10-18 13:11:30 -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
Andy Armstrong
89f93df46e
Refactor out a new discussions Django app
2016-08-17 16:20:45 -04:00
E. Kolpakov
33b3dfcc92
Converts Discussion XModule to Discussion XBlock
...
* Renames discussion_module to discussion_xblock
* Moves common/lib/xmodule/xmodule_discussion to openedx/core/lib/xblock_builtin/xblock_discussion
2016-06-29 06:47:04 +12:00
Brian Jacobel
b6cf9d231f
Disallow reporting and upvoting of your own posts in discussion forums
2016-06-15 12:01:23 -04:00
wajeeha-khalid
3c0502726c
MA-2318: get DiscussionTopic against topic id
2016-06-02 11:33:39 +05:00
wajeeha-khalid
5b5fb2464d
TNL-3818: fixed recent activity mapping in thread-list sort for Forums Web
2016-04-13 17:47:31 +05:00
Renzo Lucioni
0e7247f2a7
Fix discussion category map for self-paced courses
...
Prevents start date alone from being used to filter out categories in self-paced courses during construction of the category map. ECOM-4017.
2016-04-04 21:15:26 -04:00
M. Rehan
b427da7185
Merge pull request #11350 from edx/mrehan/unwanted-discussion-modules
...
Fix - skip orphans while getting discussion modules
2016-01-29 12:46:02 +05:00
M. Rehan
31b180beb3
Skip orphans while getting discussion modules
2016-01-29 11:09:00 +05:00
Giovanni Di Milia
e63194c1cd
Added CCX REST APIs
...
CCX REST APIs
OAUTH2 authorization for CCX APIs
- oauth2 authorization required for ccx list.
- Course-instructor permission for ccx api endpoint
- Protection for detail view too.
Tests for CCX REST APIs and OAUTH2 authorization
2016-01-27 11:04:28 -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
Matt Drayer
1eab25f292
mattdrayer/increment-edx-lint: Bump to v0.2.9 and address pylint/pep8 violations
...
* Fix paver violations to stablize edx-lint update
* Parens, Line2Long
* Fix missing docstrings
* Fix PEP8 issues
* Address PR feedback (thanks @nedbat!)
2015-10-19 10:11:59 -04:00
wajeeha-khalid
90fe71dbfe
MA-1248 - CourseEnrollmentAPI: added discussion URL
2015-10-09 19:04:55 +05:00
Waheed Ahmed
aff849281d
Revert "Test library failed to export after import"
...
This reverts commit 4c1c4619f0 .
2015-08-12 02:06:09 +05:00
Daniel Friedman
f5840489a0
Allow editing of own post in team discussion
2015-08-06 11:15:55 -04:00
Syed Hassan Raza
4c1c4619f0
Test library failed to export after import
2015-08-05 12:47:27 -07:00
Diana Huang
1c6c1654be
Add the creator of a team to that team.
...
TNL-1908
2015-08-04 16:08:40 -04:00
Ben McMorran
6d48e1360d
Extend is_commentable_cohorted to support teams
2015-07-31 20:22:31 +00:00
Ben McMorran
4a78271851
Move is_commentable_cohorted to django_comment_client
2015-07-30 20:59:34 +00:00
Ben McMorran
6b08bb20f8
TNL-1943 Support thread context for team discussions
2015-07-28 17:18:45 +00:00
Ben McMorran
2cf3390ba8
Merge pull request #8837 from edx/benmcmorran/discussion-caching-3
...
TNL-2389 Use discussion id map cache for thread creation and update
2015-07-17 11:33:02 -04:00
Ben McMorran
d36eb83a03
Add query count tests
2015-07-15 14:56:04 +00:00
Sarina Canelake
49f78b4742
Remove logging-not-lazy Pylint violations
2015-07-13 17:34:54 -04:00
Sarina Canelake
39d3537410
Pylint logging-format-interpolation: Convert logging calls to use %s formatting
2015-07-13 17:33:29 -04:00
Ben McMorran
a119b723fd
TNL-2389 Use discussion id map cache for thread creation and update
2015-07-13 20:56:50 +00:00
Ben McMorran
ccf20e52b1
TNL-2458 Cache discussion id mapping on course publish
2015-07-13 20:12:52 +00:00
Greg Price
f47ab2bb18
Enforce MAX_COMMENT_DEPTH in discussion_api
2015-06-18 17:18:02 -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
muzaffaryousaf
e6c75529c0
Cohort discussion topics via UI in instructor dashboard.
...
TNL-1256
2015-03-23 14:28:22 +05:00
Usman Khalid
e07f45b5dd
Removed cohort_config from advanced settings page.
...
TNL-1258
2015-03-23 09:58:25 +05:00
Usman Khalid
d382f569c8
Refactor django_comment_client.utils.prepare_content() to query
...
course cohort settings only once.
TNL-1258
2015-03-23 09:57:07 +05:00
Usman Khalid
d59be9949e
Use cohort settings from CourseCohortSettings.
...
TNL-1258
2015-03-23 09:43:00 +05:00
Daniel Friedman
934abf3c19
Check access for discussion modules in forums
...
TNL-650
Conflicts:
lms/djangoapps/django_comment_client/base/views.py
lms/djangoapps/django_comment_client/tests/test_utils.py
lms/djangoapps/django_comment_client/tests/utils.py
lms/djangoapps/django_comment_client/utils.py
2015-03-09 15:02:48 -04:00
David Baumgold
dca05a6095
Merge branch 'release'
2015-03-06 08:54:22 -05:00
jsa
13ba2c4a57
Revert "Merge pull request #6771 from edx/dan-f/forums-filter-discussion-modules"
...
This reverts commit 086a2ba783 , reversing
changes made to a44132ec18 . Some minor
code quality issues were addressed as part of this change.
Conflicts:
lms/djangoapps/django_comment_client/base/views.py
lms/djangoapps/django_comment_client/utils.py
2015-03-05 16:57:46 -05:00
Matjaz Gregoric
639ab0dc70
Fix issues with duplicate discussion targets.
...
When two or more instances of Discussion XBlock were configured
with the same discussion target (Category/Subcategory),
only one of the blocks would be shown on the Course Discussion page.
This was the source of several bugs when trying to edit discussion threads.
This patch adds incrementing numbers to the title of each duplicate
subcategory when rendering the Course Discussion to make sure that
all of the threads are visible in Course Discussion.
2015-03-03 23:55:15 +08:00
Clinton Blackburn
2fca3f032f
Replaced simplejson with json
...
simplejson has been removed from future versions of Django (which we will eventually use).
2015-02-26 12:13:46 -05:00
Jonathan Piacenti
be02613aac
Do event tracking for major forum events.
2015-02-25 23:30:30 +00:00
Daniel Friedman
c8434ef9c8
Check access for discussion modules in forums
...
TNL-650
2015-02-25 11:31:18 -05:00
jsa
f24f01d217
Add support for user partitioning based on cohort.
...
JIRA: TNL-710
IMPORTANT: this commit converts the course_groups
package to using migrations. When deploying to an
existing openedx instance, migration 0001 may fail
with an error indicating that the CourseUserGroup
table already exists. If this happens, running
the 0001 migration first, with the --fake option,
is recommended. After performing this step,
remaining migrations should work as expected.
2014-12-05 09:53:44 -05:00
stv
31d094b5b4
Fix PEP8: E711 comparison to None
...
should be 'if cond is None:'
2014-11-25 10:16:05 -05:00
Andy Armstrong
3af9eb25b2
Minor cleanups
2014-10-08 15:14:17 -04:00
Andy Armstrong
fbeb57874c
Address code review comments
2014-10-08 15:14:16 -04:00
Andy Armstrong
6114cf05f4
Don't show cohort information when disabled
...
TNL-552
2014-10-08 15:14:16 -04:00
polesye
f039341d21
TNL-549: Fix thread editing.
2014-10-03 23:27:15 +03:00
polesye
00c7e60e07
TNL-171: Change topic of a previously posted post.
2014-09-24 20:28:14 +03:00
jsa
d3d4d33064
Ensure group info is present in LMS responses.
...
TNL-24
2014-09-12 13:47:05 -04:00
Daniel Friedman
4d9517b456
Ensure LMS passes correct group_id when querying content
2014-09-10 16:43:06 -04:00
Andy Armstrong
8349dbfa42
Implement forum cohort visibility labels correctly
...
TNL-25
2014-09-04 13:47:48 -04:00