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
2f2e71e0
Commit
2f2e71e0
authored
Sep 09, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tracking log entries for modulestore reload
parent
ccbbb5a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
lms/djangoapps/lms_migration/migrate.py
+9
-0
No files found.
lms/djangoapps/lms_migration/migrate.py
View file @
2f2e71e0
...
...
@@ -91,6 +91,12 @@ def manage_modulestores(request, reload_dir=None, commit_id=None):
if
(
commit_id
is
not
None
)
and
(
commit_id
==
current_commit_id
):
html
+=
"<h2>Already at commit id
%
s for
%
s</h2>"
%
(
commit_id
,
reload_dir
)
track
.
views
.
server_track
(
request
,
'reload
%
s skipped already at
%
s (pid=
%
s)'
%
(
reload_dir
,
commit_id
,
os
.
getpid
(),
),
{},
page
=
'migrate'
)
else
:
html
+=
'<h2>Reloaded course directory "
%
s"</h2>'
%
reload_dir
def_ms
.
try_load_course
(
reload_dir
)
...
...
@@ -98,6 +104,9 @@ def manage_modulestores(request, reload_dir=None, commit_id=None):
new_commit_id
=
os
.
popen
(
'cd
%
s; git log -n 1 | head -1'
%
gdir
)
.
read
()
.
strip
()
.
split
(
' '
)[
1
]
set_commit_id
(
def_ms
.
courses
[
reload_dir
],
new_commit_id
)
html
+=
'<p>commit_id=
%
s</p>'
%
new_commit_id
track
.
views
.
server_track
(
request
,
'reloaded
%
s now at
%
s (pid=
%
s)'
%
(
reload_dir
,
new_commit_id
,
os
.
getpid
()),
{},
page
=
'migrate'
)
#----------------------------------------
...
...
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