Closed Bug 723635 Opened 13 years ago Closed 13 years ago

Remove upvotes from Answer model

Categories

(support.mozilla.org :: Code Quality, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2012Q3

People

(Reporter: rrosario, Assigned: icyisamu)

Details

(Whiteboard: u=dev c=question p=1 [good first bug][mentor=r1cky])

I was reading over the question extraction code and was surprised to see this column existed. Turns out it was part of the original model and it was never used or removed. We can safely remove it from the model so it avoids further confusion. Dropping the column is probably very slow and not worth it. The indexing code should probably use `num_votes` or `num_helpful_votes`.
Whiteboard: u=dev c=questions s=2012.4 p= → u=dev c=questions s=2012.4 p=1
We aren't using this in the index anymore.
Component: Questions → Code Quality
QA Contact: questions → code-quality
Summary: Remove upvotes from Answer model and stop using in elastic search index → Remove upvotes from Answer model
Whiteboard: u=dev c=questions s=2012.4 p=1 → u=dev c=questions s= p=1
Whiteboard: u=dev c=questions s= p=1 → u=dev c=question p=1 [good first bug][mentor=r1cky]
Moving all 2012Q1 bugs to Future.
Target Milestone: 2012Q1 → Future
I am working on this - I suppose "Dropping the column is probably very slow and not worth it." implies that I should not create a migration for this change?
(In reply to icyisamu from comment #3) > I am working on this - I suppose "Dropping the column is probably very slow > and not worth it." implies that I should not create a migration for this > change? Exactly. I am taking a look at the pull request now. Thanks!
Assignee: nobody → icyisamu
Target Milestone: Future → 2012Q3
I landed this in prod last night.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.