Closed
Bug 723635
Opened 13 years ago
Closed 13 years ago
Remove upvotes from Answer model
Categories
(support.mozilla.org :: Code Quality, task)
support.mozilla.org
Code Quality
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`.
| Reporter | ||
Updated•13 years ago
|
Whiteboard: u=dev c=questions s=2012.4 p= → u=dev c=questions s=2012.4 p=1
| Reporter | ||
Comment 1•13 years ago
|
||
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
| Reporter | ||
Updated•13 years ago
|
Whiteboard: u=dev c=questions s= p=1 → u=dev c=question p=1 [good first bug][mentor=r1cky]
| Reporter | ||
Comment 2•13 years ago
|
||
Moving all 2012Q1 bugs to Future.
Target Milestone: 2012Q1 → Future
| Assignee | ||
Comment 3•13 years ago
|
||
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?
| Reporter | ||
Comment 4•13 years ago
|
||
(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!
| Reporter | ||
Comment 5•13 years ago
|
||
Pull request is here: https://github.com/mozilla/kitsune/pull/770
Assignee: nobody → icyisamu
| Reporter | ||
Comment 6•13 years ago
|
||
Landed on master:
https://github.com/mozilla/kitsune/commit/fc7c6329e7466a2e92c00006254b822b85623d5f
Thanks Victor!
| Reporter | ||
Updated•13 years ago
|
Target Milestone: Future → 2012Q3
| Reporter | ||
Comment 7•13 years ago
|
||
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.
Description
•