-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[no_severity_ni] Avoid needinfo'ing triage owners that have blocked being needinfo'd #2553
base: master
Are you sure you want to change the base?
Conversation
…ot get needinfo'd
def filter_bugs(self, bugs): | ||
users_info = UserActivity(include_fields=["groups", "requests"]).check_users( | ||
set(bug["triage_owner"] for bug in bugs.values()), | ||
keep_active=True, | ||
fetch_employee_info=True, | ||
) | ||
|
||
for bug_id, bug in list(bugs.items()): | ||
user_info = users_info[bug["triage_owner"]] | ||
if "requests" in user_info: | ||
if user_info["requests"]["needinfo"]["blocked"]: | ||
del bugs[bug_id] | ||
return bugs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not think we should filter out the bugs; we should only avoid the needinfo. Also, we should decide if we want to try to find someone else to needinfo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've modified the script to change the bughandler to avoid adding the bugs to the needinfo list here: a00eef2
Please let me know if this looks ok!
user_info = users_info[bug["triage_owner"]] | ||
if "requests" in user_info: | ||
if user_info["requests"]["needinfo"]["blocked"]: | ||
del bugs[bug_id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would avoid having to delete items in this way. Instead, it would be clearer to limit this method to retrieve a list of triage owners that we want to filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this look? 7a1a05a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Resolves #2053.
Adds an additional check to delete bugs where the triage owner has requested to block needinfos.
Checklist
to-be-announced
tag added if this is worth announcing