Commit Graph

43 Commits

Author SHA1 Message Date
bmedx
ada7ded553 Add an API endpoint for retiring a user from the cs_comments_service 2018-04-02 14:54:55 -04:00
bmedx
6ece1708a6 Make sure httpretty usage cleans up after itself 2017-12-22 15:36:46 -05:00
John Eskew
2cd62c7bfb Upgrade django-rest-framework version to edX fork, which is DRF v3.6.3
with a custom patch needed by edx-platform.
Upgrade django-filter as well to v1.0.4
Import DjangoFilterBackend from the correct module - django_filter.
Add django-filter to INSTALLED_APPS.
2017-07-14 16:05:13 -04:00
Andy Armstrong
79acb5c5be Reorder LMS imports using isort 2017-06-11 21:48:06 -04:00
wajeeha-khalid
b837427bd5 MA-2554: DiscussionAPI - fixed unread_comment_count 2016-11-15 11:33:07 +05:00
wajeeha-khalid
d03f4a97c4 Merge pull request #12568 from edx/jia/MA-2419
MA-2419: make thread 'read' mutual exlusive to update fields
2016-06-02 19:29:03 +05:00
wajeeha-khalid
f19af52054 MA-2050: add optional user profile details in GET thread & comment 2016-06-02 17:05:00 +05:00
wajeeha-khalid
1d5fe0ed33 MA-2419: make thread 'read' mutual exlusive to update fields 2016-06-02 11:38:25 +05:00
wajeeha-khalid
a52cafcc9e Merge pull request #10973 from edx/jia/MA-1815
jia/MA-1815 retrieve count for child comments
2016-04-14 13:25:35 +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
wajeeha-khalid
18956af053 jia/MA-1815 retrieve count for child comments 2016-04-06 13:51:22 +05:00
wajeeha-khalid
fe9b1a0d80 add analytics event to thread/comment vote 2016-02-11 21:31:44 +05:00
wajeeha-khalid
e723fb6aec MA-1930 add result count in paginated endpoints 2016-01-28 13:41:27 +05:00
Ehtesham
df649ba21c [MA-1862] changing default value to fix quality 2016-01-19 14:31:38 +05:00
Ehtesham
43fdf9a63d [MA-1862] converting function signature to take kwargs 2016-01-19 12:54:29 +05:00
Ehtesham
1297f0af45 [MA-1862] changing next to next_link, next is builtin 2016-01-19 12:54:29 +05:00
Ehtesham
73aceb5d8a [MA-1862] updating api tests 2016-01-19 12:54:28 +05:00
Ned Batchelder
f5d0f3ff55 Remove useless pylint suppressions 2015-11-22 07:41:19 -05:00
wajeeha-khalid
7de5882372 MA-860; No moderator permissions on closed thread 2015-11-17 14:02:35 +05:00
wajeeha-khalid
a3c6faefc5 MA-1359 & MA-1457 DiscussionAPI: return response_count for thread GET/POST 2015-10-22 12:22:46 +05:00
christopher lee
5d8d1619a0 Added unanswered/unread query params for thread in discussion api
Discusion API now takes a view parameter when getting a thread list.
This view parameter only takes "unread" or "unanswered" as possible
values.
2015-07-23 11:41:08 -04:00
Christopher Lee
13dbfb8679 Merge pull request #8589 from edx/gprice/discussion-api-abuse-flagged
Add abuse flagging to discussion API
2015-06-23 18:08:58 -04:00
Greg Price
52a3306e2a Add abuse flagging to discussion API
Flagging/unflagging is done by issuing a PATCH request on a thread or
comment endpoint with the "abuse_flagged" field set.
2015-06-23 17:22:54 -04:00
Greg Price
54756317f1 Add followed thread retrieval to discussion API
This implements the "following" value for the "view" query parameter on
the thread list endpoint.
2015-06-23 13:38:34 -04:00
Greg Price
16d7a81b96 Add editable_fields to discussion API responses
This will allow clients to determine what actions (e.g. following,
endorsing, and editing content) a user can take on a piece of content.
2015-06-19 12:02:21 -04:00
Greg Price
82b117f66e Merge pull request #8543 from edx/gprice/discussion-api-comment-vote
Add comment voting to discussion API
2015-06-17 19:41:08 -04:00
Greg Price
fecbdcd052 Add text_search parameter to discussion API
The thread list endpoint now accepts the text_search parameter and also
includes a text_search_rewrite field in its responses.
2015-06-17 10:20:13 -04:00
Greg Price
0998df8c4b Add comment voting to discussion API 2015-06-16 23:32:48 -04:00
christopher lee
205c735865 Added comment deletion in the discussion API 2015-06-11 14:09:02 -04:00
Greg Price
895731f526 Add comment editing to discussion API
This is done via PATCH on a comment instance endpoint.
2015-06-11 11:39:01 -04:00
Greg Price
b91287bfe3 Merge pull request #8425 from edx/gprice/discussion-api-parent-id
Use parent_id returned from the comments service
2015-06-09 09:33:17 -04:00
Greg Price
2c7590d197 Use parent_id returned from the comments service
This depends on cs_comments_service commit 0487891.
2015-06-08 16:59:21 -04:00
christopher lee
30884d192b Added delete thread in discussion api 2015-06-08 15:43:39 -04:00
Greg Price
37ebbc45e3 Add thread voting to discussion API 2015-06-05 16:12:54 -04:00
Greg Price
9ff8749716 Add ability to follow a thread in discussion API 2015-06-05 13:20:57 -04:00
Greg Price
73d891313a Add thread editing to discussion API
This is done via PATCH on a thread instance endpoint.
2015-06-04 10:56:43 -04:00
Greg Price
8fbfa2398e Add comment creation to discussion API 2015-05-29 11:05:02 -04:00
Greg Price
df3e6535dc Add "following" parameter to thread creation
This allows authors to follow the thread immediately upon creation.
2015-05-27 10:58:14 -04:00
Greg Price
f891450f50 Add thread creation to discussion API
Also, fix the field-specific error format for all API endpoints.

This requires cs_comments_service commit fdf017c918.
2015-05-26 12:42:40 -04:00
Greg Price
c65893e9e0 Add endorsement fields to comment list API 2015-05-21 11:35:39 -04:00
Greg Price
2451e06788 Add comment list endpoint to Discussion API 2015-05-20 13:13:19 -04:00
Greg Price
fa6e5338c2 Add fields to discussion thread list endpoint
This commit adds fields that are related to the requesting user's
interaction with the thread (e.g. following).
2015-05-11 15:59:34 -04:00
Greg Price
90f28dce31 Add thread list endpoint to the new discussion API
This is an initial implementation that only allows retrieval of all
threads for a course and only returns an easily computed subset of the
fields that are needed, in order to keep this change from getting too
large.

JIRA: MA-641
2015-05-05 11:45:09 -04:00