Comment 4 for bug 600934

Revision history for this message
Brian Murray (brian-murray) wrote : Re: BugSubscription table need a constraint to prevent people being subscribed twice to the same bug

These are happening at least in part due to the account merging process.

Error in test testMergeTwoUnvalidatedAccounts (canonical.launchpad.scripts.ftests.test_keyringtrustanalyser.TestMergeClusters)
Traceback (most recent call last):
  File "/usr/lib/python2.6/unittest.py", line 279, in run
    testMethod()
  File "/srv/buildbot/slaves/launchpad/lucid-db-devel/build/lib/canonical/launchpad/scripts/ftests/test_keyringtrustanalyser.py", line 257, in testMergeTwoUnvalidatedAccounts
    '<email address hidden>'])])
  File "/srv/buildbot/slaves/launchpad/lucid-db-devel/build/lib/lp/registry/scripts/keyringtrustanalyser.py", line 180, in mergeClusters
    _mergeOrAddEmails(personset, emailset, cluster, logger)
  File "/srv/buildbot/slaves/launchpad/lucid-db-devel/build/lib/lp/registry/scripts/keyringtrustanalyser.py", line 145, in _mergeOrAddEmails
    personset.merge(otherperson, person)
  File "/srv/buildbot/slaves/launchpad/lucid-db-devel/build/lib/lp/registry/model/person.py", line 3568, in merge
    src_tab, src_col, ref_tab, ref_col
NotImplementedError: bugsubscription.person reference to person.id is in a UNIQUE index but has not been handled