Skip to content

Conversation

@rpanackal
Copy link
Member

@rpanackal rpanackal commented Dec 19, 2024

Context

SAP/ai-sdk-java-backlog

Introduce update of nested fields of complex types in OData PATCH request

Feature scope:

  • Recursive update of fields of complex properties
  • New Eum for distinct serialisation strategies for patch
    • Delta payload (only changed fields)
    • Full payload for complex type

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Documentation updated
  • Release notes updated

- Recursive update of fields of complex properties
- Facilitate both partial complex object and full
complex json object creation logic
- Update test code for correct json value type
- Partial complex object update
- full complex object update
- test for full complex object payload
- new enum for patch request strategies
…ld-update' into odatav2-complex-field-update
@newtork newtork added the please review Request to review a pull request label Dec 20, 2024
- remove unwanted disabled tag on test
- add best and since tag on java doc to all public api
- code reduction on createPatchObjectRecursiveDelta
- generalize containsNestedChangedFields with type validation
- comment correction
newtork
newtork previously approved these changes Dec 20, 2024
…to odatav2-complex-field-update

# Conflicts:
#	datamodel/odata-client/src/main/java/com/sap/cloud/sdk/datamodel/odata/client/request/ODataRequestBatch.java
#	datamodel/odata-client/src/main/java/com/sap/cloud/sdk/datamodel/odata/client/request/ODataRequestUpdate.java
@rpanackal rpanackal merged commit 4c47e68 into main Dec 23, 2024
14 checks passed
@rpanackal rpanackal deleted the odatav2-complex-field-update branch December 23, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please review Request to review a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants