Extend user with gerrit_id attribute
Some users' launchpad_id and gerrit_id do not match and need to be set properly. Closes bug #1224829 Change-Id: I6cf4eaca283558e625e90343813889f3397b82b9
This commit is contained in:
parent
e8a6c6a2c5
commit
e1590dc052
@ -1605,6 +1605,18 @@
|
||||
"user_name": "Kevin Bringard",
|
||||
"emails": ["kbringard@attinteractive.com", "kbringard@att.com"]
|
||||
},
|
||||
{
|
||||
"launchpad_id": "kc-wang",
|
||||
"gerrit_id": "kcwang",
|
||||
"companies": [
|
||||
{
|
||||
"company_name": "Big Switch Networks",
|
||||
"end_date": null
|
||||
}
|
||||
],
|
||||
"user_name": "Kuang-Ching Wang",
|
||||
"emails": ["kuangching.wang@gmail.com", "kc.wang@bigswitch.com"]
|
||||
},
|
||||
{
|
||||
"launchpad_id": "ke-wu",
|
||||
"companies": [
|
||||
|
@ -11,6 +11,9 @@
|
||||
"launchpad_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"gerrit_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"user_name": {
|
||||
"type": "string"
|
||||
},
|
||||
|
@ -91,6 +91,8 @@ def _process_users(runtime_storage_inst, users):
|
||||
users_index[user['user_id']] = user
|
||||
if 'launchpad_id' in user:
|
||||
users_index[user['launchpad_id']] = user
|
||||
if 'gerrit_id' in user:
|
||||
users_index[user['gerrit_id']] = user
|
||||
for email in user['emails']:
|
||||
users_index[email] = user
|
||||
runtime_storage_inst.set_by_key('users', users_index)
|
||||
|
Loading…
x
Reference in New Issue
Block a user