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
d296eea6
Commit
d296eea6
authored
Apr 08, 2014
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3253 from edx/sarina/fix-capa-calls
Explicitly declare `tags` in dog stats increment calls
parents
3f0a4051
f617047f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common/lib/xmodule/xmodule/capa_base.py
+3
-3
No files found.
common/lib/xmodule/xmodule/capa_base.py
View file @
d296eea6
...
...
@@ -885,7 +885,7 @@ class CapaMixin(CapaFields):
event_info
[
'failure'
]
=
'closed'
self
.
runtime
.
track_function
(
'problem_check_fail'
,
event_info
)
if
dog_stats_api
:
dog_stats_api
.
increment
(
metric_name
(
'checks'
),
[
u'result:failed'
,
u'failure:closed'
])
dog_stats_api
.
increment
(
metric_name
(
'checks'
),
tags
=
[
u'result:failed'
,
u'failure:closed'
])
raise
NotFoundError
(
_
(
"Problem is closed."
))
# Problem submitted. Student should reset before checking again
...
...
@@ -893,7 +893,7 @@ class CapaMixin(CapaFields):
event_info
[
'failure'
]
=
'unreset'
self
.
runtime
.
track_function
(
'problem_check_fail'
,
event_info
)
if
dog_stats_api
:
dog_stats_api
.
increment
(
metric_name
(
'checks'
),
[
u'result:failed'
,
u'failure:unreset'
])
dog_stats_api
.
increment
(
metric_name
(
'checks'
),
tags
=
[
u'result:failed'
,
u'failure:unreset'
])
raise
NotFoundError
(
_
(
"Problem must be reset before it can be checked again."
))
# Problem queued. Students must wait a specified waittime before they are allowed to submit
...
...
@@ -962,7 +962,7 @@ class CapaMixin(CapaFields):
self
.
runtime
.
track_function
(
'problem_check'
,
event_info
)
if
dog_stats_api
:
dog_stats_api
.
increment
(
metric_name
(
'checks'
),
[
u'result:success'
])
dog_stats_api
.
increment
(
metric_name
(
'checks'
),
tags
=
[
u'result:success'
])
dog_stats_api
.
histogram
(
metric_name
(
'correct_pct'
),
float
(
published_grade
[
'grade'
])
/
published_grade
[
'max_grade'
],
...
...
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