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
5d644862
Commit
5d644862
authored
Jun 11, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more post-open source reconciliation
parent
f25b13bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
models/comment_thread.rb
+0
-16
No files found.
models/comment_thread.rb
View file @
5d644862
...
@@ -238,15 +238,6 @@ class CommentThread < Content
...
@@ -238,15 +238,6 @@ class CommentThread < Content
def
to_hash
(
params
=
{})
def
to_hash
(
params
=
{})
doc
=
as_document
.
slice
(
*
%w[title body course_id anonymous anonymous_to_peers commentable_id created_at updated_at at_position_list closed]
)
doc
=
as_document
.
slice
(
*
%w[title body course_id anonymous anonymous_to_peers commentable_id created_at updated_at at_position_list closed]
)
<<<<<<<
HEAD
.
merge
(
"id"
=>
_id
,
"user_id"
=>
author
.
id
,
"username"
=>
author
.
username
,
"votes"
=>
votes
.
slice
(
*
%w[count up_count down_count point]
),
"tags"
=>
tags_array
,
"type"
=>
"thread"
,
"group_id"
=>
group_id
,
"endorsed"
=>
endorsed?
)
=======
.
merge
(
"id"
=>
_id
,
"user_id"
=>
author_id
,
.
merge
(
"id"
=>
_id
,
"user_id"
=>
author_id
,
"username"
=>
author
.
username
,
"username"
=>
author
.
username
,
"votes"
=>
votes
.
slice
(
*
%w[count up_count down_count point]
),
"votes"
=>
votes
.
slice
(
*
%w[count up_count down_count point]
),
...
@@ -256,8 +247,6 @@ class CommentThread < Content
...
@@ -256,8 +247,6 @@ class CommentThread < Content
"group_id"
=>
group_id
,
"group_id"
=>
group_id
,
"pinned"
=>
pinned?
,
"pinned"
=>
pinned?
,
"endorsed"
=>
endorsed?
)
"endorsed"
=>
endorsed?
)
>>>>>>>
master
if
params
[
:recursive
]
if
params
[
:recursive
]
doc
=
doc
.
merge
(
"children"
=>
root_comments
.
map
{
|
c
|
c
.
to_hash
(
recursive:
true
)})
doc
=
doc
.
merge
(
"children"
=>
root_comments
.
map
{
|
c
|
c
.
to_hash
(
recursive:
true
)})
end
end
...
@@ -304,17 +293,12 @@ class CommentThread < Content
...
@@ -304,17 +293,12 @@ class CommentThread < Content
!!
(
tag
=~
RE_TAG
)
!!
(
tag
=~
RE_TAG
)
end
end
<<<<<<<
HEAD
private
private
=======
def
comment_thread_id
def
comment_thread_id
#so that we can use the comment thread id as a common attribute for flagging
#so that we can use the comment thread id as a common attribute for flagging
self
.
id
self
.
id
end
end
private
>>>>>>>
master
RE_HEADCHAR
=
/[a-z0-9]/
RE_HEADCHAR
=
/[a-z0-9]/
RE_ENDONLYCHAR
=
/\+/
RE_ENDONLYCHAR
=
/\+/
RE_ENDCHAR
=
/[a-z0-9\#]/
RE_ENDCHAR
=
/[a-z0-9\#]/
...
...
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