Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
b1fc36d5
Commit
b1fc36d5
authored
Feb 07, 2014
by
Greg Price
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2514 from edx/gprice/fix-single-thread-recursive
Avoid requesting unnecessary thread responses
parents
2086fcb8
bc0ca63f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
lms/djangoapps/django_comment_client/forum/views.py
+4
-1
No files found.
lms/djangoapps/django_comment_client/forum/views.py
View file @
b1fc36d5
...
@@ -239,8 +239,11 @@ def single_thread(request, course_id, discussion_id, thread_id):
...
@@ -239,8 +239,11 @@ def single_thread(request, course_id, discussion_id, thread_id):
cc_user
=
cc
.
User
.
from_django_user
(
request
.
user
)
cc_user
=
cc
.
User
.
from_django_user
(
request
.
user
)
user_info
=
cc_user
.
to_dict
()
user_info
=
cc_user
.
to_dict
()
# Currently, the front end always loads responses via AJAX, even for this
# page; it would be a nice optimization to avoid that extra round trip to
# the comments service.
thread
=
cc
.
Thread
.
find
(
thread_id
)
.
retrieve
(
thread
=
cc
.
Thread
.
find
(
thread_id
)
.
retrieve
(
recursive
=
True
,
recursive
=
request
.
is_ajax
()
,
user_id
=
request
.
user
.
id
,
user_id
=
request
.
user
.
id
,
response_skip
=
request
.
GET
.
get
(
"resp_skip"
),
response_skip
=
request
.
GET
.
get
(
"resp_skip"
),
response_limit
=
request
.
GET
.
get
(
"resp_limit"
)
response_limit
=
request
.
GET
.
get
(
"resp_limit"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment