biigle / sync

:m: BIIGLE module to transfer data between application instances
GNU General Public License v3.0
0 stars 0 forks source link

Console command to sync UUIDs #5

Closed mzur closed 6 years ago

mzur commented 6 years ago

As there already were a few BIIGLE instance before we introduced the user UUIDs, there may be a few different UUIDs around for the same users. Implement a console command that takes a user export and synchronizes the user UUIDs in the database with it. The command should check user names and email addresses for exact matches and UUIDs for mismatches to guide through a merge process where the UUID in the database can be interactively replaced with the UUID in the user export.

mzur commented 6 years ago

Using a plain user export is probably not a good idea since it contains hashed passwords, user names and their email addresses. Maybe implement a console command that returns an anonymized json containing only user UUIDs, hashed user names and hashed email addresses. This is the input format for the sync UUIDs command.