Cached karma should be recalculated after merging an account
Bug #3189 reported by
Christian Reis
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Unassigned |
Bug Description
We recently saw in bug 2569 that a merged account was listed with tons of karma. Salgado and I looked into this today and discovered the root cause: when merging the person's karma records are transferred, but the cached karma is not recalculated. This needs to be done at merge time.
Related branches
lp:~sinzui/launchpad/merge-karma-1
- Aaron Bentley (community): Approve
-
Diff: 259 lines (+147/-30)3 files modifieddatabase/schema/security.cfg (+2/-2)
lib/lp/registry/model/person.py (+46/-3)
lib/lp/registry/tests/test_person.py (+99/-25)
Changed in launchpad: | |
assignee: | nobody → salgado |
status: | New → Accepted |
Changed in launchpad: | |
status: | Accepted → Fixed |
affects: | launchpad-foundations → launchpad-registry |
Changed in launchpad-registry: | |
importance: | Medium → Low |
tags: | added: merge-deactivate |
Changed in launchpad-registry: | |
milestone: | none → 10.11 |
tags: | added: qa-ok |
Changed in launchpad-registry: | |
status: | In Progress → Fix Committed |
Changed in launchpad-registry: | |
status: | Fix Committed → Fix Released |
Changed in launchpad: | |
assignee: | Curtis Hovey (sinzui) → nobody |
To post a comment you must log in.
The fix for this bug was merged into rocketfuel on 2005-10-19, with "Recalculate the karma cache upon merging of accounts and some other fixes. r=BjornT" as the commit message. The patch is found on revision 2716 of our bzr tree. I don't know what happened later, but this fix, together with the tests got reverted somehow.