Trying to sort gem versions by downloads fails because joins don’t work on associations with dynamic conditions.
https://github.com/rubygems/rubygems.org/blob/master/app/models/version.rb#L6 …
-
-
Replying to @olivierlacan
If anybody has a brilliant idea for that one, I’m fresh out.
1 reply 0 retweets 0 likes -
Replying to @olivierlacan
Why does that need to be a block? Isn't that just `foreign_key: :rubygem_id`?
2 replies 0 retweets 0 likes
Replying to @sgrif @olivierlacan
Oh I see. There's multiple keys there. Is the `rubygem_id` constraint necessary at all? Isn't the version id enough?
2:25 AM - 19 Oct 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.