Ehtesham
a13bf52dbf
[MA-1862] using NamespacedPageNumberPagination class for pagination
2016-01-19 12:54:28 +05:00
wajeeha-khalid
e662e869d6
MA-1190; patch 'read' attribute for thread
2015-11-19 15:33:35 +05:00
wajeeha-khalid
4ea70aeb19
MA-862; accept application/merge-patch+json for comment/thread update
2015-11-13 12:52:21 +05:00
christopher lee
0646f9bfcf
MA-1637 Discussion API now uses the view_auth_classes for permissions
...
Added missing unit tests.
2015-11-09 13:05:37 -05:00
wajeeha-khalid
509b2a4453
MA-1044 DiscussionTopic - Added bulk operations
2015-11-05 18:24:20 +05:00
wajeeha-khalid
16ab4f4333
Merge pull request #10105 from edx/jia/MA-1189
...
MA-1189 - Discussion API: implemented GET comment children
2015-10-30 11:37:41 +05:00
wajeeha-khalid
fa285e09a4
MA-1189 - Discussion API: implemented GET comment children
2015-10-22 15:53:34 +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
Ned Batchelder
8ec2de9359
DRF 3.1 now uses request.data instead of request.DATA
2015-09-29 15:25:55 -04:00
Brian Beggs
d9de52751d
Merge remote-tracking branch 'origin/release' into bbeggs/2015-09-22-release-to-master
2015-09-28 20:58:34 -04:00
Ben Patterson
2fd6add524
Revert "Merge DRF 3.1 in to master"
2015-09-28 17:12:43 -04:00
Will Daly
d11ccad0fc
Upgrade djangorestframework to v3.1
...
* Upgrade edx-submissions
* Upgrade edx-ora2
* Upgrade edx-val
* Upgrade edx-proctoring
* Update all edx-platform code that depends on DRF, including:
- auth_exchange
- cors_csrf
- embargo
- enrollment
- util
- commerce
- course_structure
- discussion_api
- mobile_api
- notifier_api
- teams
- credit
- profile_images
- user_api
- lib/api (OAuth2 and pagination)
2015-09-28 11:52:30 -04:00
Will Daly
8555630df7
Upgrade djangorestframework to v3.1
...
* Upgrade edx-submissions
* Upgrade edx-ora2
* Upgrade edx-val
* Upgrade edx-proctoring
* Update all edx-platform code that depends on DRF, including:
- auth_exchange
- cors_csrf
- embargo
- enrollment
- util
- commerce
- course_structure
- discussion_api
- mobile_api
- notifier_api
- teams
- credit
- profile_images
- user_api
- lib/api (OAuth2 and pagination)
2015-09-25 12:40:57 -04:00
wajeeha-khalid
ab4d85a5d1
MA-1305 - formatted author label to Staff & Community TA
...
refactor community_ta and staff in docstrings
2015-09-22 17:03:04 +05:00
wajeeha-khalid
bbad9ae772
MA-1182 - added test for not enrolled in course, removed commented out nose test code, formatted import statements according to edx standards
2015-09-14 11:43:21 +05:00
wajeeha-khalid
1059456d69
added GET method for Threads in Dicussion API
2015-09-10 19:23:38 +05:00
christopher lee
5b35ab3668
Added optional mark_as_read field to comments in Discussion API
...
Currently when GETting comments, the thread of the comment will be
marked as read. This change makes this effect optional as well as
setting the default to not mark the thread as read.
2015-08-12 12:25:06 -04:00
christopher lee
ed3bb27df8
Thread sort key and direction for discussion api
...
Discussion API for thread sorting now takes the sort_by
parameter for the sort key such as by comment_count or
vote_count. Also takes the sort_direction parameter for
sorting the thread results.
2015-07-28 14:34:30 -04: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
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
de68c30486
Merge pull request #8530 from edx/gprice/discussion-api-text-search
...
Add text_search parameter to discussion API
2015-06-17 11:35:12 -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
d18b24b051
Add discussion API course endpoint
...
This endpoint returns course metadata relating to discussions as a
starting point for clients.
2015-06-16 11:27:54 -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
christopher lee
30884d192b
Added delete thread in discussion api
2015-06-08 15:43:39 -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
christopher lee
f552eca7d6
MA-642 Add topic_id query to discussion/thread api
...
Also added thread_list_url field.
2015-06-03 11:29:48 -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
565cdb8edf
Move Discussion API access control checks
...
The checks are now within the Python API instead of the DRF view. This
will be necessary for certain operations (like fetching/editing threads)
because the relevant course cannot be known until the thread is fetched
from the comments service. This commit updates the existing endpoints to
fit that pattern.
2015-05-18 14:03:02 -04:00
Greg Price
7ce579c274
Add group fields to thread list endpoint
2015-05-11 15:59:35 -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
Greg Price
ebff94af3f
Add discussion topic API
...
This is the first stage of the new Discussion API.
JIRA: MA-604
2015-04-30 14:25:05 -04:00