Almost half of the core packages are not published cause they do not pass datapackage validation
Why do we care that data is valid? (This is worth asking as sometimes we can get obsessed with validation and forget why we do it). We want valid data packages so that:
- Page rendering works (we don't get 500 errors because license is an array rather than string or vice versa)
- Graph rendering works (e.g. date is actually a date)
At the same time, we want to make it as easy as possible for users to publish -- be liberal in what you accept and strict in what you emit!
Acceptance criteria
Tasks
Prep
Analyse the problems
Resolve
Summary
We need a proper documentation about properties of data packages. Detailed specification on data types and formats, especially for date type since it is very common issue. And make a list of common errors, description and explanation for them and suggestions how to fix them.
Old Analysis
Possible solutions
- [N1] Change type to new
year (or other) type in JS library (in upcoming release - but not supported in current js lib!)
- [N2] Write the small scripts that deals with common problems Eg changes format in datapackage.json and modifies csv file to have correct field values [8]
- write tests [1]
- write script [3]
- run against all packages that have that type of problem one by one; [1]
- publish [1]
- rise the PR [1]
- fix the packages that can not be fixed manually; publish; rise PR [1]
- [N3] standard code / algorithm to do conforming in dpm-py [>7]
- write test [1]
- come up with generic function (if possible at all) [5]
- run
dpm publish against broken packages [1]
- fix the remaining ones [??]
Almost half of the core packages are not published cause they do not pass datapackage validation
Why do we care that data is valid? (This is worth asking as sometimes we can get obsessed with validation and forget why we do it). We want valid data packages so that:
At the same time, we want to make it as easy as possible for users to publish -- be liberal in what you accept and strict in what you emit!
Acceptance criteria
Tasks
Prep
Analyse the problems
https://docs.google.com/spreadsheets/d/14kJluhePaMOx6vYBic0poVjDYK3I8-v_xF3sv4Focac/edit#gid=0
Resolve
https://docs.google.com/spreadsheets/d/14kJluhePaMOx6vYBic0poVjDYK3I8-v_xF3sv4Focac/edit#gid=0&range=17:28
Summary
We need a proper documentation about properties of data packages. Detailed specification on data types and formats, especially for date type since it is very common issue. And make a list of common errors, description and explanation for them and suggestions how to fix them.
Old Analysis
Possible solutions
year(or other) type in JS library (in upcoming release - but not supported in current js lib!)dpm publishagainst broken packages [1]