datopian / datahub

🌀 Rapidly build rich data portals using a modern frontend framework
https://datahub.io/opensource
MIT License
2.19k stars 325 forks source link

Some views broken on datahub.io/core datasets post upgrade to v3 #1130

Open mohamedsalem401 opened 2 months ago

mohamedsalem401 commented 2 months ago

Tasks

Review the main items below first (headings of sections in the "Notes" part below) and decide what can be done or not and then add tasks for fixing:

See DataPackage Views spec for reference https://specs.frictionlessdata.io/views

Notes

Only views with specType: "simple" are supported at the moment.

Other spec types will cause the following error:

image

List of affected datasets:

view.spec.type of column not supported

unsupported view.spec.type of type column 
( Valid values: "arc", "area", "bar", "image", "line", "point", "rect", "rule", "text", "tick", "trail", "circle", "square", "geoshape" )

List of affected datasets

resources field of views in form of array of objects are not supported

Currently, we only support views with simple resources (an array of strings):

"resources": [ resource1, resource2 ]

Some datasets have resources in form of arrays of objects: image

List of affected datasets

olayway commented 2 months ago

@mohamedsalem401 so in the spec it says that resource in the resources array of the view field can be an object as well:

https://specs.frictionlessdata.io/views/#data-source-spec

image

However, I'm not sure if we want to support transforms atm. Probably not. And in the spec it also says that "Data Transforms" are "In progress".

@rufuspollock any thoughts?

rufuspollock commented 3 weeks ago

I think this is a relatively simple item that would be good for someone who wants to work on datasets.