Add recent uploads to stats page#1238
Conversation
|
Hi, Even if you dont have downloads locally this should work. Can you also provide a screenshot of the change? |
|
Hi, If you'd like to see if you can reproduce this: I set up a development environment as described in https://github.com/rubygems/rubygems.org/blob/master/CONTRIBUTING.md#development-setup, and the only data in my database I imported from the latest postgres database dump (2016-03-28T21:21:28), and with this branch currently receive that NoMethodError. I haven't imported any Redis data. I believe this error occurs because in In any case, here's a screenshot of the change (I've commented out the problem line so I can take this, which is why the most downloaded graph is not showing): Thanks |
|
Hi, I wondered if anyone had a chance to look at this or has any feedback on this PR? Cheers |
|
I think |
bcdcf96 to
4fb51e6
Compare
|
Thanks for your response, I've rebased on master now and it looks ok. Regarding |
|
☔ The latest upstream changes (presumably #1259) made this pull request unmergeable. Please resolve the merge conflicts. |
This commit displays the gem name and version number for recently uploaded gems within a new table on the stats page.
These link to the gem's page for the gem name, and the particular version's page for the version number.
4fb51e6 to
1bccd78
Compare
|
Sure, done |
|
Thinking about this some more, and I think this might fit better on it's own page. Recent uploads aren't really stats. A "recent" page might work well? |
|
Thanks for the feedback @dwradcliffe, I think that sounds reasonable that these should be separate pages rather than dumping everything on the stats page. I'll try to take another look at this at some point soon. |
|
☔ The latest upstream changes (presumably #1272) made this pull request unmergeable. Please resolve the merge conflicts. |
|
@bobwhitelock Are you still working on this? |
|
@jvanbaarsen: Nope, I meant to come back to it but looks like I haven't yet so probably will never happen! |
|
@bobwhitelock Ok! Can you close this PR in that case? Keeps the backlog a bit cleaner :-) |
|
OK :) |

This PR adds a table for the 10 most recently uploaded gem versions to the stats page, as suggested in #1217.
I've tried to keep this in a similar style to the rest of the page but this might be able to be improved. Potentially more information could also be added to this table, e.g. displaying how long ago uploads took place might be useful.
I did encounter one issue just now after rebasing this branch to be up to date with the latest changes - when I visit the stats page after this I get the following error:
I think this is because I have no downloads yet in my local database; I then tried to download a gem to see if this would fix this however I get the following error when visiting the download page:
I'm not sure why this route would be failing though.