Metadata returns creation day instead of updated in API JSON-format
pokkeko opened this issue · comments
Describe the bug
PxWeb API returns creation day value instead of updated date in JSON- and JSON-STAT(2) format.
Is it possible for the user to change the metadata values returned by the API?
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://statdb.luke.fi:443/PxWeb/sq/1ea2394e-bd78-40c4-afaa-c6aa80cc5866/'
- Take the API-query from this table and change the response format to "json" or "json-stat2"
- In the response metadata section the "updated" value is the "creation day" value.
Expected behavior
the "updated" value
Actual behavior
the "creation day" value.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment information
- OS: [windows 10]
- Browser [all]
- Version
- Device: [e.g. laptop, etc]
Additional context
Add any other context about the problem here.
From Postman:
],
"metadata": [
{
"updated": "2014-08-26T08:00:00Z",
"label": "Total fish production in Finland by region, type and year",
"source": "Natural Resources Institute Finland, Total fish production"
}
]
}
Yes, it it looks like a bug. If a content variable is not defined LastUpdated is at table level. But JSON, JSON-STAT and JSON-STAT2 do not look there istead it fall backs on Creation Time.
Should be fixed in the new Serializer