[ 
https://issues.apache.org/jira/browse/BEAM-7828?focusedWorklogId=286873&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-286873
 ]

ASF GitHub Bot logged work on BEAM-7828:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Aug/19 17:24
            Start Date: 01/Aug/19 17:24
    Worklog Time Spent: 10m 
      Work Description: post-l commented on pull request #9174: [BEAM-7828] 
Fixes Key type conversion from/to client entity in Python Datastore IO
URL: https://github.com/apache/beam/pull/9174#discussion_r309810517
 
 

 ##########
 File path: sdks/python/apache_beam/io/gcp/datastore/v1new/types_test.py
 ##########
 @@ -51,18 +51,22 @@ def testEntityToClientEntity(self):
     kc = k.to_client_key()
     exclude_from_indexes = ('efi1', 'efi2')
     e = Entity(k, exclude_from_indexes=exclude_from_indexes)
-    e.set_properties({'efi1': 'value', 'property': 'value'})
+    ref = Key(['kind2', 1235])
+    e.set_properties({'efi1': 'value', 'property': 'value', 'ref': ref})
     ec = e.to_client_entity()
     self.assertEqual(kc, ec.key)
     self.assertSetEqual(set(exclude_from_indexes), ec.exclude_from_indexes)
     self.assertEqual('kind', ec.kind)
     self.assertEqual(1234, ec.id)
+    self.assertEqual(1235, ec['ref'].id)
 
 Review comment:
   done
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 286873)
    Time Spent: 1h  (was: 50m)

> Add key type conversion in from and to client entity in Datastore v1new IO.
> ---------------------------------------------------------------------------
>
>                 Key: BEAM-7828
>                 URL: https://issues.apache.org/jira/browse/BEAM-7828
>             Project: Beam
>          Issue Type: Sub-task
>          Components: io-python-gcp
>            Reporter: Valentyn Tymofieiev
>            Assignee: Udi Meiri
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to