Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upHide comments from specific users [issue #197] #329
Conversation
blueyedgeek
added some commits
Nov 25, 2016
blueyedgeek
changed the title from
Hide comments from specific users [issue 197]
to
Hide comments from specific users [issue #197]
Nov 25, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
crertel
Nov 26, 2016
Contributor
Some questions:
- Why did you add a dependency on
pgthat wasn't there before, and why is the PG extension now a hard requirement, when the current codebase uses MySQL? - Why did you add a dependency on
addressablethat wasn't there before? - Why did you remove the limits on the text columns (and what does this mean for people submitting maliciously large data)?
- Why did you increase the limit on the vote column in the vote table?
Good testing though! Just maybe try to stick with the idioms already present in the codebase.
EDIT: removed question about capybara--now I see what you were up to there.
|
Some questions:
Good testing though! Just maybe try to stick with the idioms already present in the codebase. EDIT: removed question about capybara--now I see what you were up to there. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
blueyedgeek
Nov 28, 2016
Why did you add a dependency on pg that wasn't there before, and why is the PG extension now a hard requirement, when the current codebase uses MySQL?
An oversight on my part (I'm most familiar with postgres and I used it instead of mysql). I'll update the pr and remove the dependency on the postgres gem
Why did you add a dependency on addressable that wasn't there before?
It's a runtime dependency for Capybara (added by the capybara gem)
Why did you remove the limits on the text columns (and what does this mean for people submitting maliciously large data)?
Why did you increase the limit on the vote column in the vote table?
This I got to look into as I only added the migration to create one new table (blocked users) and I am unclear as to why this would cause the limit constraints to be removed.
blueyedgeek
commented
Nov 28, 2016
An oversight on my part (I'm most familiar with postgres and I used it instead of mysql). I'll update the pr and remove the dependency on the postgres gem
It's a runtime dependency for
This I got to look into as I only added the migration to create one new table (blocked users) and I am unclear as to why this would cause the limit constraints to be removed. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Thank you for answering my questions. :) |
goizueta
referenced this pull request
Nov 28, 2016
Open
Most recent PR should only include merged PRs #5
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pushcx
Nov 28, 2016
Member
Why did you increase the limit on the vote column in the vote table?
Rails creates schema.rb by introspecting on the database. If PostgresSQL and MySQL differ in their understanding of a migration or implementation of a table, you'll get churn in the file.
The best way to avoid it is to git add -p after running a migration. To fix it, rollback the migration, git add db/schema.rb, re-run the migration, then git add -p only the deliberate changes (which may require manual editing). Then commit and git checkout db/schema.rb to toss the spurious changes.
Rails creates The best way to avoid it is to |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
blueyedgeek
commented
Dec 2, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
danielcompton
Mar 23, 2017
After squashing these commits, the rebase to resolve conflicts was simple. What's needed next to move this PR forward?
danielcompton
commented
Mar 23, 2017
•
|
After squashing these commits, the rebase to resolve conflicts was simple. What's needed next to move this PR forward? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jcs
Mar 23, 2017
Contributor
I would like some community discussion on Lobsters on whether this type of feature is wanted.
|
I would like some community discussion on Lobsters on whether this type of feature is wanted. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
danielcompton
Mar 23, 2017
I've made a meta post about this here: https://lobste.rs/s/debnsq/hiding_comments_by_specific_users
danielcompton
commented
Mar 23, 2017
|
I've made a meta post about this here: https://lobste.rs/s/debnsq/hiding_comments_by_specific_users |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jcs
Mar 28, 2017
Contributor
Sorry, but there didn't seem to be a lot of concensus around wanting this.
|
Sorry, but there didn't seem to be a lot of concensus around wanting this. |
blueyedgeek commentedNov 25, 2016
•
edited
Edited 1 time
-
blueyedgeek
edited Nov 25, 2016 (most recent)
This PR implements the feature requested in #197