-
Notifications
You must be signed in to change notification settings - Fork 194
Import river position data and make available via the MetaCPAN API #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'd rather go with verbose, I think. We have to deal with a bunch of different web services and making keys obvious makes for less head scratching. If you're worried about file size, you could compress it. |
#462 was merged |
Here's a first version of the river data: Need to think where to put this ongoing. Maybe in github, then we'll have history data, but the repo (history) will end up getting very big. |
@jberger did you want to look at tweaking your work to deal with the compressed file? |
ah good point, yeah thanks |
With Mojo::UserAgent if I munge the headers it will just transparently decode the gzip. I'm investigating if the similar behavior is possible with LWP. If it works then we should see if we can get @neilb to serve the file with Content-Encoding: gzip, Content-Type: application/json |
At the very least, it should work with |
In the River discussion at the QAH 2016 we agreed one of the things that would help most is if a dist's river position were available via the MetaCPAN API, and also displayed on a dist's home page on MetaCPAN (I'll raise a separate ticket for that).
I'm calculating river position for all dists every week, and have agreed to put this data somewhere. After a chat with @oalders we agreed with that initially this will be simple JSON data like the following:
Here's what those fields are:
JSON always seems stupidly verbose, so for internal things I tend to use shorter names, like the second example above. Or would you rather go with verbosity?
Once we've agreed on the above format, I'll decide where to publish it so you can grab a first version, then I'll set up something to ensure it's getting regularly updated.
The text was updated successfully, but these errors were encountered: