Skip to content

Remove rubygems download#1292

Merged
dwradcliffe merged 2 commits into
rubygems:masterfrom
sonalkr132:remove_rubygems_download
May 29, 2016
Merged

Remove rubygems download#1292
dwradcliffe merged 2 commits into
rubygems:masterfrom
sonalkr132:remove_rubygems_download

Conversation

@sonalkr132
Copy link
Copy Markdown
Member

We are using GemDownload for all purposes now.
A lot of tests broke after I removed downloads with error:

NoMethodError: undefined method `downloads=' for #Rubygem:0x000000017c0a78

Since we had used create(rubygems, ...., downloads: some_number) quite a few places, I added downloads as transient attribute of rubygem factory to avoid making too many changes and to keep tests DRY.

Comment thread db/schema.rb
add_index "users", ["remember_token"], name: "index_users_on_remember_token", using: :btree
add_index "users", ["token"], name: "index_users_on_token", using: :btree

create_table "version_histories", force: :cascade do |t|
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about this. In #1285 I had forgotten to run the migration 😭

@homu
Copy link
Copy Markdown
Contributor

homu commented May 28, 2016

☔ The latest upstream changes (presumably #1293) made this pull request unmergeable. Please resolve the merge conflicts.

@sonalkr132 sonalkr132 force-pushed the remove_rubygems_download branch from 1ed212a to e680e87 Compare May 28, 2016 06:56
@homu
Copy link
Copy Markdown
Contributor

homu commented May 29, 2016

☔ The latest upstream changes (presumably #1294) made this pull request unmergeable. Please resolve the merge conflicts.

Rubygems has downloads method which used gem_downloads' count.
Add `downloads` as transient attribute of Rubygem.
@sonalkr132 sonalkr132 force-pushed the remove_rubygems_download branch from e680e87 to d80b82d Compare May 29, 2016 04:09
@dwradcliffe dwradcliffe merged commit e7e9575 into rubygems:master May 29, 2016
@dwradcliffe dwradcliffe temporarily deployed to staging May 29, 2016 11:55 Inactive
@dwradcliffe dwradcliffe temporarily deployed to production May 31, 2016 13:01 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants