Skip to content

Commit fda8427

Browse files
Use include_fields in round_robin and no_assignee (#2583)
Fixes #1102
1 parent 38a1425 commit fda8427

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

bugbot/round_robin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ def get_nick(self, bzmail, prod_comp, cal):
132132
def handler(user):
133133
self.nicks[bzmail] = user["nick"]
134134

135-
BugzillaUser(user_names=[bzmail], user_handler=handler).wait()
135+
BugzillaUser(
136+
user_names=[bzmail], user_handler=handler, include_fields=["nick"]
137+
).wait()
136138

137139
if bzmail not in self.nicks:
138140
self.add_erroneous_bzmail(bzmail, prod_comp, cal)

bugbot/rules/no_assignee.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ def handler(user, data):
134134

135135
if users:
136136
BugzillaUser(
137-
user_names=list(users), user_handler=handler, user_data=data
137+
user_names=list(users),
138+
user_handler=handler,
139+
user_data=data,
140+
include_fields=["name", "real_name"],
138141
).wait()
139142

140143
return data

0 commit comments

Comments
 (0)