-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use deep update on nested collections #743
Comments
ODataDemo.zip |
@vcantor thanks for reporting this. I think it's a feature gap. OData team has the re-design of the Delta request and response, see details OData/WebApi#2656. At the beginning, I thought I can port the works/codes from 7.x to 8.x. However, that works is still in review. Let me take a look and see whether I can move it forward in 8.x. Of course, it's open for contribution. |
@vcantor @julealgon Please review the PR #747 and share your comments. With the PR changes and use the ODataDemo.zip It works fine: Delta nested collection:normal nested collection: |
Assemblies affected
Microsoft.AspNetCore.OData Version="8.0.11"
Microsoft.OData.Core" Version="7.12.5"
Microsoft.OData.Edm" Version="7.12.5"
Describe the bug
I am trying to implement a deep update according to Update Related Entities When Updating an Entity and I am receiving an error when patches on nested collections occur.
Reproduce steps
Make a patch request that is sending a delta update on a nested collection.
Data Model
Controller:
EDM (CSDL) Model
Request/Response
Request Headers:
Request Body:
Response Headers:
Response Body:
Expected behavior
The updates on the OrderItems should be populated in the Delta when using nested delta updates.
Additional context
When I am using the endpoint
v1/Orders/{orderId}/items
the DeltaSet is populated correctly. Only when nested patches occur the delta is not working.Exception message from OData:
Stacktrace:
The text was updated successfully, but these errors were encountered: