Page MenuHomePhabricator

Perceval indexing should not create separate unique identity when only AKA of a Phab account is changed
Open, LowPublicBUG REPORT

Description

When people edit their Phab profile (via "Manage") and change or remove the Also Known As (AKA), an entirely new identity is indexed.

This should not happen. Code should realize that the actual username is still the same. (Note that this is not about renaming the username which is also possible; I don't expect the code to also cover that by pulling user account IDs or such - different topic.)

e.g. for UID 625b1693d84f510ebdc782bc2bf0806903a3b5e4, https://phabricator.wikimedia.org/people/manage/27796/#11693 shows a change of the AKA. I had to manually merge these two accounts in the DB into one:

Screenshot from 2022-04-01 11-18-51.png (246×776 px, 31 KB)

Needs changes probably somewhere in https://github.com/chaoss/grimoirelab-perceval/blob/master/perceval/backends/core/phabricator.py

Event Timeline

Aklapper created this task.

I'd expect this to be a simple if then else check if a username already exists in the database before adding it again as a separate unique identity.

As long as this remains unresolved, I added a corresponding SQL query to fix manually in https://www.mediawiki.org/w/index.php?title=User%3AAKlapper_%28WMF%29%2FBitergia_data_quality_queries&type=revision&diff=5316643&oldid=5215055