Teams still getting karma

Bug #39241 reported by Stuart Bishop
18
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Stuart Bishop

Bug Description

https://launchpad.net/people/rosetta-admins/+karma shows that teams are
still able to get karma. Either the add karma api exposed by IPerson is
broken, or bits of Rosetta are not using it.

 affects /products/launchpad

--
Stuart Bishop <email address hidden> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/

Revision history for this message
Guilherme Salgado (salgado) wrote :

The IPerson.assignKarma() method is broken. Actually, I think the problem is that IPerson.is_valid_person (used inside assignKarma to ensure we don't assign karma to teams or inactive accounts, as the comment says) is misleading as it will also be True for teams.

Changed in launchpad:
status: Unconfirmed → Confirmed
Revision history for this message
Stuart Bishop (stub) wrote : Re: [Bug 39241] Re: Teams still getting karma

Guilherme Salgado wrote:
> The IPerson.assignKarma() method is broken. Actually, I think the problem is that IPerson.is_valid_person (used inside assignKarma to ensure we don't assign karma to teams or inactive accounts, as the comment says) is misleading as it will also be True for teams.

IPerson.is_valid_person should be false for teams if I recall.

--
Stuart Bishop <email address hidden> http://www.canonical.com/
Canonical Ltd. http://www.ubuntu.com/

Revision history for this message
Guilherme Salgado (salgado) wrote :

No, IPerson.is_valid_person is True for teams because it queries ValidPersonOrTeamCache. This should be fixed together with a test.

Stuart Bishop (stub)
Changed in launchpad:
assignee: nobody → stub
status: Confirmed → In Progress
Revision history for this message
Stuart Bishop (stub) wrote :

I'll need to trash the karma associated with teams manually after rollout.

Changed in launchpad:
status: In Progress → Fix Committed
Stuart Bishop (stub)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.