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
925dd72a
Commit
925dd72a
authored
Aug 23, 2016
by
Toby Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tracing to #to_hash for Comment/CommentThread.
parent
1f4b77a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
models/comment.rb
+4
-0
models/comment_thread.rb
+3
-1
No files found.
models/comment.rb
View file @
925dd72a
require
'new_relic/agent/method_tracer'
require_relative
'content'
require_relative
'constants'
...
...
@@ -164,4 +165,7 @@ class Comment < Content
self
.
sk
=
(
self
.
parent_ids
.
dup
<<
self
.
id
).
join
(
"-"
)
end
end
include
::
NewRelic
::
Agent
::
MethodTracer
add_method_tracer
:to_hash
end
models/comment_thread.rb
View file @
925dd72a
...
...
@@ -133,7 +133,6 @@ class CommentThread < Content
"group_id"
=>
group_id
,
"pinned"
=>
pinned?
,
"comments_count"
=>
comment_count
)
end
def
comment_thread_id
...
...
@@ -162,4 +161,7 @@ class CommentThread < Content
def
destroy_subscriptions
subscriptions
.
delete_all
end
include
::
NewRelic
::
Agent
::
MethodTracer
add_method_tracer
:to_hash
end
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