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

Annotate a property as "cannot be specified on insert, can be updated later"

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD01
    • Fix Version/s: V4.0_CSD02
    • Component/s: Vocabularies
    • Labels:
      None
    • Environment:

      Proposed

    • Proposal:
      Hide

      Add a new property NonInsertableProperties to term InsertRestrictions that is a collection of property paths, similar to the existing NonInsertableNavigationProperties.

      Note: we do not need this yet for update as this is covered by term Core.Immutable on the property level.

      Show
      Add a new property NonInsertableProperties to term InsertRestrictions that is a collection of property paths, similar to the existing NonInsertableNavigationProperties . Note: we do not need this yet for update as this is covered by term Core.Immutable on the property level.
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-vocabularies/pull/44/files  

      Description

      Business documents can contain fields that cannot be filled out when creating the document and can only be updated after successfully creating the business document.

      One example is "physical inventory":

      • A physical inventory document is created as a plan for performing a physical inventory, listing the materials to be inventoried.
      • The stocks are counted for the materials to be inventoried.
      • The count results are entered in the physical inventory document. The document is now "counted".
      • If the count revealed differences between book and reality, the warehouse manager checks the reason for the difference and enters it in the document.
      • The difference can then be posted by the manager.

      To accurately reflect this in the service metadata, the "count" and the “difference reason” properties need to be annotated as "do not provide on insert, only provide on update".

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: