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
0c2465e9
Commit
0c2465e9
authored
Aug 11, 2015
by
Diana Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #134 from edx/diana/team-discussions-2
Remove exists clause from query.
parents
3161c460
f2d9f596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
lib/helpers.rb
+1
-1
No files found.
lib/helpers.rb
View file @
0c2465e9
...
@@ -133,7 +133,7 @@ helpers do
...
@@ -133,7 +133,7 @@ helpers do
context
=
:course
context
=
:course
)
)
context_threads
=
comment_threads
.
any_of
({
:context
.
exists
=>
false
},
{
:context
=>
context
})
context_threads
=
comment_threads
.
where
(
{
:context
=>
context
})
if
not
group_ids
.
empty?
if
not
group_ids
.
empty?
group_threads
=
get_group_id_criteria
(
comment_threads
,
group_ids
)
group_threads
=
get_group_id_criteria
(
comment_threads
,
group_ids
)
...
...
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