Always store users

In case of write failure user profile may become inconsistent,
and there's no way to re-write it by all keys. Remove store optimization
and always store users from default_data by all possible keys.

Change-Id: I23e0c1107b87485d1c86e2e2133ceb77ee954b4e
This commit is contained in:
Ilya Shakhat
2016-06-22 13:38:30 +03:00
parent 7c97cd2873
commit 028f7bcb12
3 changed files with 4 additions and 12 deletions

View File

@@ -46,6 +46,7 @@ def _normalize_user(user):
emails=user.get('emails'),
gerrit_id=user.get('gerrit_id'),
github_id=user.get('github_id'),
zanata_id=user.get('zanata_id'),
ldap_id=user.get('ldap_id')) or user.get('user_id')