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
ef5cd63c
Commit
ef5cd63c
authored
Jun 05, 2015
by
Adam
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8345 from edx/adam/time-imports
time how long imports take in datadog
parents
65bcc50e
67b56ae8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
cms/djangoapps/contentstore/views/import_export.py
+5
-0
No files found.
cms/djangoapps/contentstore/views/import_export.py
View file @
ef5cd63c
...
@@ -21,6 +21,7 @@ from django.utils.translation import ugettext as _
...
@@ -21,6 +21,7 @@ from django.utils.translation import ugettext as _
from
django.views.decorators.http
import
require_http_methods
,
require_GET
from
django.views.decorators.http
import
require_http_methods
,
require_GET
from
django_future.csrf
import
ensure_csrf_cookie
from
django_future.csrf
import
ensure_csrf_cookie
import
dogstats_wrapper
as
dog_stats_api
from
edxmako.shortcuts
import
render_to_response
from
edxmako.shortcuts
import
render_to_response
from
xmodule.contentstore.django
import
contentstore
from
xmodule.contentstore.django
import
contentstore
from
xmodule.exceptions
import
SerializationError
from
xmodule.exceptions
import
SerializationError
...
@@ -260,6 +261,10 @@ def _import_handler(request, courselike_key, root_name, successful_url, context_
...
@@ -260,6 +261,10 @@ def _import_handler(request, courselike_key, root_name, successful_url, context_
log
.
info
(
"Course import
%
s: Extracted file verified"
,
courselike_key
)
log
.
info
(
"Course import
%
s: Extracted file verified"
,
courselike_key
)
_save_request_status
(
request
,
courselike_string
,
3
)
_save_request_status
(
request
,
courselike_string
,
3
)
with
dog_stats_api
.
timer
(
'courselike_import.time'
,
tags
=
[
u"courselike:{}"
.
format
(
courselike_key
)]
):
courselike_items
=
import_func
(
courselike_items
=
import_func
(
modulestore
(),
request
.
user
.
id
,
modulestore
(),
request
.
user
.
id
,
settings
.
GITHUB_REPO_ROOT
,
[
dirpath
],
settings
.
GITHUB_REPO_ROOT
,
[
dirpath
],
...
...
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