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
67b56ae8
Commit
67b56ae8
authored
Jun 03, 2015
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
time how long imports take in datadog
parent
f01b2f43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
cms/djangoapps/contentstore/views/import_export.py
+12
-7
No files found.
cms/djangoapps/contentstore/views/import_export.py
View file @
67b56ae8
...
...
@@ -21,6 +21,7 @@ from django.utils.translation import ugettext as _
from
django.views.decorators.http
import
require_http_methods
,
require_GET
from
django_future.csrf
import
ensure_csrf_cookie
import
dogstats_wrapper
as
dog_stats_api
from
edxmako.shortcuts
import
render_to_response
from
xmodule.contentstore.django
import
contentstore
from
xmodule.exceptions
import
SerializationError
...
...
@@ -260,13 +261,17 @@ def _import_handler(request, courselike_key, root_name, successful_url, context_
log
.
info
(
"Course import
%
s: Extracted file verified"
,
courselike_key
)
_save_request_status
(
request
,
courselike_string
,
3
)
courselike_items
=
import_func
(
modulestore
(),
request
.
user
.
id
,
settings
.
GITHUB_REPO_ROOT
,
[
dirpath
],
load_error_modules
=
False
,
static_content_store
=
contentstore
(),
target_id
=
courselike_key
)
with
dog_stats_api
.
timer
(
'courselike_import.time'
,
tags
=
[
u"courselike:{}"
.
format
(
courselike_key
)]
):
courselike_items
=
import_func
(
modulestore
(),
request
.
user
.
id
,
settings
.
GITHUB_REPO_ROOT
,
[
dirpath
],
load_error_modules
=
False
,
static_content_store
=
contentstore
(),
target_id
=
courselike_key
)
new_location
=
courselike_items
[
0
]
.
location
logging
.
debug
(
'new course at
%
s'
,
new_location
)
...
...
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