3 ms·
As someone who has written so much boilerplate data-collection code (i.e. scripts that I cron on my local repo, then push to Github), this is really incredible.
by danso 5y ago
As someone who has written so much boilerplate data-collection code (i.e. scripts that I cron on my local repo, then push to Github), this is really incredible. I've been really impressed with what Simon W. has shown off with Github Actions but hadn't yet felt compelled enough to dive in and learn the conventions...but this looks like a great entry point.
Don't know if this is the place to report bugs, but I was trying the github»flatgithub data viewer trick on an old repo that has a name of `white_house_salaries`.
My data subdirectories have several files named white_house_salaries.csv — e.g. data/wrangled/white_house_salaries.csv is the "finished" version. However, visiting that file in flatgithub.com gives me a "No valid data" error:
https://flatgithub.com/storydrivendatasets/white_house_salaries/tree/master/data/wrangled?filename=data%2Fwrangled%2Fwhite_house_salaries.csv&filters=&sha=b192132462f6e544e9773301fc1688f49b63ec49&sort= https://flatgithub.com/storydrivendatasets/white_house_salar...
I get the same error when visiting data/fused/white_house_salaries.csv.
However, when I rename the file to something other than "white_house_salaries.csv", like, data/wrangled/white_house_salaries_wrangled.csv, it works as expected:
https://flatgithub.com/storydrivendatasets/white_house_salaries?filename=data%2Fwrangled%2Fwhite_house_salaries_wrangled.csv&sha=87aeb87d863bc7aa5004a940062a0730382bf812 https://flatgithub.com/storydrivendatasets/white_house_salar...
I'm guessing there must be some issue with the data filename (white_house_salaries.csv) sharing the same name as the repo (storydrivendatasets/white_house_salaries)?
- rothenbizzle 5y agoHey there! Matt from the DevEx team here. Apologies for the lack of polish – I think the issue here is that the flatgithub.com URL only works when you specify the repo owner and repo name, à la https://flatgithub.com/storydrivendatasets/white_house_salaries https://flatgithub.com/storydrivendatasets/white_house_salar.... It gets confused by all of the other stuff afterward, "tree/master/data/wrangled". Let me know if that gets you sorted!