opendatatrentino / disi-open-data-client

0 stars 0 forks source link

Campanil partenza opening hours has no value #40

Open DavidLeoni opened 8 years ago

DavidLeoni commented 8 years ago

In odr when reading campanil partenza I get poening hours with no value. Db and sweb are the same used for testing 0.3.5 release

sweb api:

REDACTED-SERVER/odr-api/instances/64235?maxDepth=1&includeSemantics=false&maxValues=10&includeAttributes=true&createAttributeMap=false&attributeFilterType=ATTRIBUTE_DEF_ID&includeAttributesAsProperties=false&includeTimestamps=false&locale=all

Here we see there are actually values in the attribute 214750

   {
      "id": 214750,
      "instanceId": 64235,
      "conceptId": 111008,
      "definitionId": 66,
      "categoryId": 15,
      "dataType": "COMPLEX_TYPE",
      "name": {
        "en": "Opening hours",
        "it": "Orario di apertura"
      },
      "values": [
        {
          "id": 63649,
          "attributeId": 214750,
          "sortIndex": 0,
          "dataType": "COMPLEX_TYPE",
          "operator": "EQUAL",
          "value": {
            "@type": "Structure",
            "id": 64238,
            "entityBaseId": 1,
            "typeId": 7,
            "attributes": [
              {
                "id": 214752,
                "instanceId": 64238,
                "conceptId": 111011,
                "definitionId": 31,
                "categoryId": 8,
                "dataType": "STRING",
                "name": {
                  "en": "Opening time",
                  "it": "Orario di apertura"
                },
                "values": [
                  {
                    "id": 125413,
                    "attributeId": 214752,
                    "sortIndex": 0,
                    "dataType": "STRING",
                    "operator": "EQUAL",
                    "value": "08.30 "
                  }
                ]
              },
              {
                "id": 214753,
                "instanceId": 64238,
                "conceptId": 73048,
                "definitionId": 30,
                "categoryId": 8,
                "dataType": "STRING",
                "name": {
                  "en": "Closing time",
                  "it": "Orario di chiusura"
                },
                "values": [
                  {
                    "id": 125414,
                    "attributeId": 214753,
                    "sortIndex": 0,
                    "dataType": "STRING",
                    "operator": "EQUAL",
                    "value": " 16.30"
                  }
                ]
              }
            ]
          }
        }
      ]
    }

log in odr:

21:04:2016:11:24:39.726 [main] WARN  e.t.o.d.model.entity.StructureODR - FOUND NULL VALUE FOR SWEB ATTRIBUTE WITH ID214750, SWEB DATATYPE COMPLEX_TYPE AND OE DATATYPE oe:structure , discarding it!