Closed rufuspollock closed 10 years ago
@landonreed @aliounedia so question here is how we do this best.
The simplest thing possible right now would be:
/#{username}/{repo}/{github-style-path-to-file}
What do people think?
@rgrp @landonreed , I have some questions here : what look like a [ prose-style browser] for a csv file . I though that we want to load on grid a csv github file / not gist file . It can be done by testing if a gist file or just a "github csv file" style project where save means writing over the original file. change can be done on grid ?
Once we have a decision this is now about 1h to implement :-)
@landonreed @aliounedia so we now have basic load working e.g.
http://explorer.okfnlabs.org/#datasets/gdp-us/edit/master/quarter.csv
However save won't work yet (plus some other stuff probably!)
@landonreed , @rgrp, I was very busy this last days, so I will check today :) Thank!
@landonreed @aliounedia this should now basically be working including save. Please visit http://explorer.okfnlabs.org/#start and give a try (see the Edit a Github CSV on the front page) and let me know if there are bugs / issues.
FIXED.
@rgrp this is great! Would it be totally out of scope to also support editing tables expressed as YAML? I've been writing github jekyll sites that are driven by a table or two placed in _data/*.yml
, and a simple online editor could help my collaborators. Looking at the code, it seems doable, but not sure the functionality belongs here?
@paulfitz it would actually be pretty simple to do and would we a welcome addition - we just need something that will serialize and unserialize yaml to a structure like (this is what we use internally in managing the data)
{
records: [ { a: 1, b: 2}, {a: 10, b: 12}, ... ]
// fields are optional - fields describe the columns as per json table schema
fields: [ { name: 'a', type: 'string' }, ... ]
}
@rgrp looks like procrastinating on doing this paid off for me. The version of jekyll on github-pages was recently updated, and will now accept _data/*.json
, so no yaml needed.
Also this https://github.com/jekyll/jekyll/pull/2761 will reduce the work needed down to zero, with csv supported directly.
glad to be of service ;)
Propose we have url:
e.g.
Do do this we need: