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

add location to attributes exported to neo4j
This commit is contained in:
Adam
2016-10-13 10:34:55 -04:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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):