Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cs_comments_service
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
cs_comments_service
Commits
de13cf58
Commit
de13cf58
authored
Mar 07, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for debugging
parent
e09e487f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
config/mongoid.yml
+11
-2
models/comment_thread.rb
+1
-1
No files found.
config/mongoid.yml
View file @
de13cf58
development
:
sessions
:
default
:
database
:
cs_comments_service_development
hosts
:
-
localhost:27017
nothing
:
sessions
:
default
:
database
:
c
s_comments_service_development
database
:
c
omments-prod-clone
hosts
:
-
localhost:27017
-
charlotte.mongohq.com:10035
username
:
kevinchugh@edx.org
password
:
mitxisnowedx
test
:
sessions
:
...
...
models/comment_thread.rb
View file @
de13cf58
...
...
@@ -96,6 +96,7 @@ class CommentThread < Content
page
=
[
1
,
options
[
:page
]
||
1
].
max
per_page
=
options
[
:per_page
]
||
20
per_page
=
2
sort_key
=
options
[
:sort_key
]
sort_order
=
options
[
:sort_order
]
if
CommentService
.
config
[
:cache_enabled
]
...
...
@@ -127,7 +128,6 @@ class CommentThread < Content
search
.
filter
(
:term
,
course_id:
params
[
"course_id"
])
if
params
[
"course_id"
]
if
params
[
"group_id"
]
search
.
filter
:or
,
[
{
:not
=>
{
:exists
=>
{
:field
=>
:group_id
}}},
{
:term
=>
{
:group_id
=>
params
[
"group_id"
]}}
...
...
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