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
15c2a828
Unverified
Commit
15c2a828
authored
Nov 03, 2017
by
Gabe Mulley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set a custom course_id metric on enrollment
parent
42396560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
common/djangoapps/student/views.py
+4
-0
No files found.
common/djangoapps/student/views.py
View file @
15c2a828
...
@@ -1263,6 +1263,10 @@ def change_enrollment(request, check_access=True):
...
@@ -1263,6 +1263,10 @@ def change_enrollment(request, check_access=True):
)
)
return
HttpResponseBadRequest
(
_
(
"Invalid course id"
))
return
HttpResponseBadRequest
(
_
(
"Invalid course id"
))
# Allow us to monitor performance of this transaction on a per-course basis since we often roll-out features
# on a per-course basis.
monitoring_utils
.
set_custom_metric
(
'course_id'
,
unicode
(
course_id
))
if
action
==
"enroll"
:
if
action
==
"enroll"
:
# Make sure the course exists
# Make sure the course exists
# We don't do this check on unenroll, or a bad course id can't be unenrolled from
# We don't do this check on unenroll, or a bad course id can't be unenrolled from
...
...
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