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
210f9328
Commit
210f9328
authored
Jun 21, 2016
by
Awais Jibran
Committed by
Qubad786
Aug 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refersh library children for the block during import.
TNL-4826
parent
e3397671
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
+7
-1
No files found.
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
View file @
210f9328
...
...
@@ -68,6 +68,7 @@ from xblock.core import XBlock
from
xblock.fields
import
Scope
,
Reference
,
ReferenceList
,
ReferenceValueDict
from
xmodule.course_module
import
CourseSummary
from
xmodule.errortracker
import
null_error_tracker
from
xmodule.library_tools
import
LibraryToolsService
from
opaque_keys.edx.keys
import
CourseKey
from
opaque_keys.edx.locator
import
(
BlockUsageLocator
,
DefinitionLocator
,
CourseLocator
,
LibraryLocator
,
VersionTree
,
LocalId
,
...
...
@@ -2105,7 +2106,12 @@ class SplitMongoModuleStore(SplitBulkWriteMixin, ModuleStoreWriteBase):
# fetch and return the new item--fetching is unnecessary but a good qc step
new_locator
=
course_key
.
make_usage_key
(
block_key
.
type
,
block_key
.
id
)
return
self
.
get_item
(
new_locator
,
**
kwargs
)
new_item
=
self
.
get_item
(
new_locator
,
**
kwargs
)
if
block_key
.
type
==
'library_content'
:
# Update imported xblocks' 'source_library_version' to keep it up to date.
LibraryToolsService
(
self
)
.
update_children
(
new_item
,
user_id
)
return
new_item
else
:
return
None
...
...
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