Skip to content

Commit

Permalink
only merge on create user (amundsen-io#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngyjd committed Jun 14, 2019
1 parent ab78684 commit c8bb9f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions metadata_service/proxy/neo4j_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ def add_owner(self, *,
"""
create_owner_query = textwrap.dedent("""
MERGE (u:User {key: $user_email})
on CREATE SET u={email: $user_email, key: $user_email}
on CREATE SET u.email: $user_email, u.key: $user_email
""")

upsert_owner_relation_query = textwrap.dedent("""
Expand Down Expand Up @@ -800,8 +800,7 @@ def add_table_relation_by_user(self, *,

upsert_user_query = textwrap.dedent("""
MERGE (u:User {key: $user_email})
on CREATE SET u={email: $user_email, key: $user_email}
on MATCH SET u={email: $user_email, key: $user_email}
on CREATE SET u.email: $user_email, u.key: $user_email
""")

user_email = 'key: "{user_email}"'.format(user_email=user_email)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

__version__ = '1.0.9'
__version__ = '1.0.10'


setup(
Expand Down

0 comments on commit c8bb9f3

Please sign in to comment.