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

Bug in Example 38: terms for LeveledHierarchy and RecursiveHierarchy incorrectly annotated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.0_CSD01
    • Fix Version/s: V4.0_CSD03
    • Component/s: Data Aggregation
    • Labels:
      None
    • Environment:

      [Applied]

    • Proposal:
      Hide

      Correct is:
      <Annotations Target="SalesModel.Product">
      <Annotation Term="Aggregation.LeveledHierarchy"
      Qualifier="ProductHierarchy">
      <Collection>
      <PropertyPath>Category/Name</PropertyPath>
      <PropertyPath>Name</PropertyPath>
      </Collection>
      </Annotation>
      </Annotations>

      <Annotations Target="SalesModel.Time">
      <Annotation Term="Aggregation.LeveledHierarchy"
      Qualifier="TimeHierarchy">
      <Collection>
      <PropertyPath>Year</PropertyPath>
      <PropertyPath>Quarter</PropertyPath>
      <PropertyPath>Month</PropertyPath>
      </Collection>
      </Annotation>
      </Annotations>

      <Annotations Target="SalesModel.SalesOrganization">
      <Annotation Term="Aggregation.RecursiveHierarchy"
      Qualifier="SalesOrgHierarchy">
      <Record>
      <PropertyValue Property="NodeProperty"
      PropertyPath="ID" />
      <PropertyValue Property="ParentNodeProperty"
      PropertyPath="Superordinate/ID" />
      </Record>
      </Annotation>
      </Annotations>

      Applied: https://www.oasis-open.org/committees/document.php?document_id=56041&wg_abbrev=odata

      Show
      Correct is: <Annotations Target="SalesModel.Product"> <Annotation Term="Aggregation.LeveledHierarchy" Qualifier="ProductHierarchy"> <Collection> <PropertyPath>Category/Name</PropertyPath> <PropertyPath>Name</PropertyPath> </Collection> </Annotation> </Annotations> <Annotations Target="SalesModel.Time"> <Annotation Term="Aggregation.LeveledHierarchy" Qualifier="TimeHierarchy"> <Collection> <PropertyPath>Year</PropertyPath> <PropertyPath>Quarter</PropertyPath> <PropertyPath>Month</PropertyPath> </Collection> </Annotation> </Annotations> <Annotations Target="SalesModel.SalesOrganization"> <Annotation Term="Aggregation.RecursiveHierarchy" Qualifier="SalesOrgHierarchy"> <Record> <PropertyValue Property="NodeProperty" PropertyPath="ID" /> <PropertyValue Property="ParentNodeProperty" PropertyPath="Superordinate/ID" /> </Record> </Annotation> </Annotations> Applied: https://www.oasis-open.org/committees/document.php?document_id=56041&wg_abbrev=odata

      Description

      There is a mismatch betwen the terms defined in http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs01/vocabularies/Org.OData.Aggregation.V1.xml and the usage in example 38. The term definitions are correct and fit to the normative text.
      Wrong is (snipped from example 38):
      <Annotations Target="SalesModel.Product">
      <Annotation Term="Aggregation.LeveledHierarchy"
      Qualifier="ProductHierarchy">
      <Record>
      <PropertyValue Property="Levels">
      <Collection>
      <String>Category/Name</String>
      <String>Name</String>
      </Collection>
      </PropertyValue>
      </Record>
      </Annotation>
      </Annotations>

      <Annotations Target="SalesModel.Time">
      <Annotation Term="Aggregation.LeveledHierarchy"
      Qualifier="TimeHierarchy">
      <Record>
      <PropertyValue Property="Levels">
      <Collection>
      <String>Year</String>
      <String>Quarter</String>
      <String>Month</String>
      </Collection>
      </PropertyValue>
      </Record>
      </Annotation>
      </Annotations>

      <Annotations Target="SalesModel.SalesOrganization">
      <Annotation Term="Aggregation.RecursiveHierarchy"
      Qualifier="SalesOrgHierarchy">
      <Record>
      <PropertyValue Property="NodeProperty" String="ID" />
      <PropertyValue Property="ParentNodeProperty"
      String="Superordinate/ID" />
      </Record>
      </Annotation>
      </Annotations>

        Attachments

          Activity

            People

            • Assignee:
              martinzurmuehl Martin Zurmuehl
              Reporter:
              martinzurmuehl Martin Zurmuehl
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: