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
076651d8
Commit
076651d8
authored
Oct 11, 2016
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add location to attributes exported to neo4j
parent
05440f75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
openedx/core/djangoapps/coursegraph/management/commands/dump_to_neo4j.py
+1
-0
openedx/core/djangoapps/coursegraph/management/commands/tests/test_dump_to_neo4j.py
+1
-0
No files found.
openedx/core/djangoapps/coursegraph/management/commands/dump_to_neo4j.py
View file @
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
...
...
openedx/core/djangoapps/coursegraph/management/commands/tests/test_dump_to_neo4j.py
View file @
076651d8
...
...
@@ -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
):
...
...
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