python-odata icon indicating copy to clipboard operation
python-odata copied to clipboard

Send only dirty values for initial Entity insert

Open tuomur opened this issue 8 years ago • 2 comments

Sending full objects with null values sometimes causes problems when server has read-only values or values that cannot be set at initial POST. Might be better to just send dirty values. @awartani already looked at this in #9

tuomur avatar May 04 '17 19:05 tuomur

Another solution may be adding support for "Computed" annotations for properties. The metadata may contain elements like <Annotation Term="Org.OData.Core.V1.Computed" Bool="true" /> for this purpose. On POST/PATCH these properties would be dropped from payload.

tuomur avatar May 09 '17 12:05 tuomur

Added Computed properties in bf3351a49a65750c1beb91849be2ad961f764f51. Might need some more testing.

tuomur avatar May 10 '17 11:05 tuomur