Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-678

Clarify delta responses with containment, OnDelete, or referential constraints

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_OS
    • Fix Version/s: V4.0_ERRATA01
    • Component/s: JSON Format, Protocol
    • Labels:
      None
    • Environment:

      [Applied]

    • Proposal:
      Hide

      Services can omit tombstones for contained and dependent entities.

      Note that services must still return added/deleted links if a dependent property changes and if a link changes there must be a dependent property change.

      Show
      Services can omit tombstones for contained and dependent entities. Note that services must still return added/deleted links if a dependent property changes and if a link changes there must be a dependent property change.

      Description

      If an entity is deleted, related entities will be implicitly deleted if a navigation property specifies <OnDelete Action="Cascade" /> or ContainsTarget="true".

      It is not explicitly specified if in this case the service has to include a deleted-entity object for each deleted entity in a delta response, or whether it is sufficient to notify clients of the deletion of the principal entity.

      Similarly in the presence of referential constraints added the changed entities already carry the necessary information and the added/deleted link objects are redundant.

      The JSON Format design goal of omitting everything from the payload that can be deduced from $metadata would indicate to just notifying the deletion of the principal entity.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: