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
bcbce3ef
Commit
bcbce3ef
authored
Jun 24, 2013
by
Renzo Lucioni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add handful of events to the Segment.io whitelist
parent
b14553d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
common/lib/xmodule/xmodule/js/src/capa/display.coffee
+4
-4
common/static/coffee/src/logger.coffee
+1
-1
No files found.
common/lib/xmodule/xmodule/js/src/capa/display.coffee
View file @
bcbce3ef
...
...
@@ -138,7 +138,7 @@ class @Problem
# maybe preferable to consolidate all dispatches to use FormData
###
check_fd
:
=>
Logger
.
log
'problem_check'
,
@
answers
Logger
.
log
'problem_check'
,
answers
:
@
answers
# If there are no file inputs in the problem, we can fall back on @check
if
$
(
'input:file'
).
length
==
0
...
...
@@ -212,7 +212,7 @@ class @Problem
$
.
ajaxWithPrefix
(
"
#{
@
url
}
/problem_check"
,
settings
)
check
:
=>
Logger
.
log
'problem_check'
,
@
answers
Logger
.
log
'problem_check'
,
answers
:
@
answers
$
.
postWithPrefix
"
#{
@
url
}
/problem_check"
,
@
answers
,
(
response
)
=>
switch
response
.
success
when
'incorrect'
,
'correct'
...
...
@@ -224,7 +224,7 @@ class @Problem
@
gentle_alert
response
.
success
reset
:
=>
Logger
.
log
'problem_reset'
,
@
answers
Logger
.
log
'problem_reset'
,
answers
:
@
answers
$
.
postWithPrefix
"
#{
@
url
}
/problem_reset"
,
id
:
@
id
,
(
response
)
=>
@
render
(
response
.
html
)
@
updateProgress
response
...
...
@@ -284,7 +284,7 @@ class @Problem
@
el
.
find
(
'.capa_alert'
).
css
(
opacity
:
0
).
animate
(
opacity
:
1
,
700
)
save
:
=>
Logger
.
log
'problem_save'
,
@
answers
Logger
.
log
'problem_save'
,
answers
:
@
answers
$
.
postWithPrefix
"
#{
@
url
}
/problem_save"
,
@
answers
,
(
response
)
=>
saveMessage
=
response
.
msg
@
gentle_alert
saveMessage
...
...
common/static/coffee/src/logger.coffee
View file @
bcbce3ef
class
@
Logger
# events we want sent to Segment.io for tracking
SEGMENT_IO_WHITELIST
=
[
"seq_goto"
,
"seq_next"
,
"seq_prev"
]
SEGMENT_IO_WHITELIST
=
[
"seq_goto"
,
"seq_next"
,
"seq_prev"
,
"problem_check"
,
"problem_reset"
,
"problem_show"
,
"problem_save"
]
@
log
:
(
event_type
,
data
)
->
if
event_type
in
SEGMENT_IO_WHITELIST
...
...
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