Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
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
Shaik Janipasha
AmendsenProject
Commits
cd4fa941
Commit
cd4fa941
authored
May 30, 2019
by
Junda Yang
Committed by
Tao Feng
May 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change USER_NODE_IS_ACTIVE to unquoted (#71)
parent
3c876ca1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
user.py
databuilder/models/user.py
+2
-1
setup.py
setup.py
+1
-1
test_table_column_usage.py
tests/unit/models/test_table_column_usage.py
+1
-1
No files found.
databuilder/models/user.py
View file @
cd4fa941
...
...
@@ -3,6 +3,7 @@ from typing import Union, Dict, Any # noqa: F401
from
databuilder.models.neo4j_csv_serde
import
Neo4jCsvSerializable
,
NODE_KEY
,
\
NODE_LABEL
,
RELATION_START_KEY
,
RELATION_START_LABEL
,
RELATION_END_KEY
,
\
RELATION_END_LABEL
,
RELATION_TYPE
,
RELATION_REVERSE_TYPE
from
databuilder.publisher.neo4j_csv_publisher
import
UNQUOTED_SUFFIX
class
User
(
Neo4jCsvSerializable
):
...
...
@@ -21,7 +22,7 @@ class User(Neo4jCsvSerializable):
USER_NODE_EMPLOYEE_TYPE
=
'employee_type'
USER_NODE_MANAGER_EMAIL
=
'manager_email'
USER_NODE_SLACK_ID
=
'slack_id'
USER_NODE_IS_ACTIVE
=
'is_active
'
USER_NODE_IS_ACTIVE
=
'is_active
{}'
.
format
(
UNQUOTED_SUFFIX
)
# bool value needs to be unquoted when publish to neo4j
USER_NODE_UPDATED_AT
=
'updated_at'
USER_MANAGER_RELATION_TYPE
=
'MANAGE_BY'
...
...
setup.py
View file @
cd4fa941
from
setuptools
import
setup
,
find_packages
__version__
=
'1.2.
2
'
__version__
=
'1.2.
3
'
setup
(
...
...
tests/unit/models/test_table_column_usage.py
View file @
cd4fa941
...
...
@@ -24,7 +24,7 @@ class TestTableColumnUsage(unittest.TestCase):
'last_name'
:
''
,
'full_name'
:
''
,
'employee_type'
:
''
,
'is_active'
:
True
,
'is_active
:UNQUOTED
'
:
True
,
'updated_at'
:
0
,
'LABEL'
:
'User'
,
'slack_id'
:
''
,
...
...
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