A Rake task for updating gems' download counts #452

Merged
merged 1 commit into from Nov 12, 2012

Conversation

Projects
None yet
5 participants
Contributor

janko-m commented Aug 23, 2012

I noticed that you don't have a task for that. I also noticed that rubygem records are updated very rarely with their number of downloads. Hopefully, now that you have this task, you can put it as a scheduled task to be run regularly (at least once a month, if it's possible).

I'm aware how big the rubygems table is, so I was careful about the memory. I've also written the task in a way that only 1 SQL query is executed for updating all rubygems.

Contributor

janko-m commented Aug 23, 2012

Please, take a look at the issue #432 for why this is important.

This pull request passes (merged 0903014c into 29fabb2).

This pull request fails (merged 1d02d195 into 29fabb2).

Contributor

cmeiklejohn commented Sep 8, 2012

It looks like your latest changes broke the test suite -- can you investigate why?

Contributor

janko-m commented Sep 8, 2012

Well, I don't know why they broke – all I did was add a rake task. Maybe the tests were failing on master at the moment when I updated my commit.

But that reminded me that I should really write tests for this rake task. I will report here when I've written them.

Contributor

cmeiklejohn commented Sep 9, 2012

Sweet, thank you.

Contributor

cmeiklejohn commented Sep 9, 2012

Looks like your failure is related to #438 and not your change.

Contributor

adkron commented Nov 9, 2012

@janko-m Are you still working on this?

Contributor

janko-m commented Nov 9, 2012

Yes, I'm sorry for taking so long, I intend to finish this.

Contributor

janko-m commented Nov 12, 2012

I added the tests :)

I'm wondering, do you get a notification when I amend a commit (like I did here)? Because I always put a comment after I amend just in case, and I'd rather not if you do get a notification :P

Member

sferik commented Nov 12, 2012

FYI, I only receive notifications of comments, not of pushes. Thanks for working on this (and following-up).

@sferik sferik added a commit that referenced this pull request Nov 12, 2012

@sferik sferik Merge pull request #452 from janko-m/downloads
A Rake task for updating gems' download counts
c93e65c

@sferik sferik merged commit c93e65c into rubygems:master Nov 12, 2012

1 check passed

default The Travis build passed
Details
Contributor

janko-m commented Nov 12, 2012

My pleasure :)

janko-m deleted the janko-m:downloads branch Sep 2, 2013

@sferik sferik added a commit that referenced this pull request Jan 29, 2015

@sferik sferik Merge pull request #452 from janko-m/downloads
A Rake task for updating gems' download counts
5ac574a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment