Closed ke-zhang-rd closed 4 years ago
I might be misunderstanding the connection between this and #26, but I had in mind something that transforms:
{'name': 'A', 'attributes': [{'name': 'B', 'value: 'C'}, {'name': 'D', 'value': 'E'}]}
into:
{'name': 'A', 'attributes': {'B': 'C', 'D': 'E'}}
ValueError was raised by mismatching of owner
value in argument and server's return(server always use current login user as owner).
owner
won't be in put_property
api argument, removed its test
@danielballan Could you review this before I put new pattern to all other methods?
Yes, Currently, the server treats all property attributes as strings...Most rest services do follow this pattern. It also simplifies the mapping in elastic.
If the concern is with sorting that can be added on the server side.
Thanks @shroffk @danielballan
I updated docstring and add some comments on code.
If no more comments, please merge!
Based on discussion in #26