Merge pull request #13715 from edx/adam/export-location-to-neo4j
add location to attributes exported to neo4j
This commit is contained in:
@@ -82,6 +82,7 @@ class ModuleStoreSerializer(object):
|
||||
fields['course'] = course_key.course
|
||||
fields['run'] = course_key.run
|
||||
fields['course_key'] = six.text_type(course_key)
|
||||
fields['location'] = six.text_type(item.location)
|
||||
|
||||
label = item.scope_ids.block_type
|
||||
|
||||
|
||||
@@ -118,6 +118,7 @@ class TestModuleStoreSerializer(TestDumpToNeo4jCommandBase):
|
||||
self.assertIn("course", fields.keys())
|
||||
self.assertIn("run", fields.keys())
|
||||
self.assertIn("course_key", fields.keys())
|
||||
self.assertIn("location", fields.keys())
|
||||
self.assertNotIn("checklist", fields.keys())
|
||||
|
||||
def test_serialize_course(self):
|
||||
|
||||
Reference in New Issue
Block a user