Commit 644a5798 by Adam Committed by GitHub

Merge pull request #13715 from edx/adam/export-location-to-neo4j

add location to attributes exported to neo4j
parents e96bcbd7 076651d8
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment