Skip to content
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

Updated not_landed to get user nicks in 1 call and removed the duplicate - Closes #1101 #2365

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Jubintgh
Copy link

@Jubintgh Jubintgh commented Mar 15, 2024

Checklist

  • Type annotations added to new functions
  • Docs added to functions touched in main classes
  • Dry-run produced the expected results
  • The to-be-announced tag added if this is worth announcing

Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @Jubintgh! Please see my comments.

bugbot/rules/not_landed.py Outdated Show resolved Hide resolved
bugbot/rules/not_landed.py Show resolved Hide resolved
bugbot/rules/not_landed.py Outdated Show resolved Hide resolved
@Jubintgh
Copy link
Author

Thank you, @Jubintgh! Please see my comments.

Thanks @suhaibmujahid, I applied your suggestions to improve readability. please let me know your thoughts

Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Could you please do another dry-run test?

Also, please link the PR to the issue that will be resolved.1

Footnotes

  1. https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

bugbot/rules/not_landed.py Outdated Show resolved Hide resolved
@Jubintgh Jubintgh changed the title Updated not_landed to get user nicks in 1 call and removed the duplicate #1101 Updated not_landed to get user nicks in 1 call and removed the duplicate Closes #1101 Mar 23, 2024
@Jubintgh Jubintgh changed the title Updated not_landed to get user nicks in 1 call and removed the duplicate Closes #1101 Updated not_landed to get user nicks in 1 call and removed the duplicate - Closes #1101 Mar 23, 2024
@Jubintgh Jubintgh closed this Mar 23, 2024
@Jubintgh Jubintgh reopened this Mar 23, 2024
Copy link
Member

@suhaibmujahid suhaibmujahid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please link to the issue in the PR description instead of the title?


if not assignee:
continue

self.add_auto_ni(bugid, {"mail": assignee, "nickname": nickname})

common = all_reviewers & data["reviewers_phid"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't all_reviewers a set?

for bugid, data in bugs_patch.items():
reviewers_phid |= data["reviewers_phid"]
assignee = bugs[bugid]["assigned_to"]
if not assignee:
assignee = max(data["author"], key=data["author"].get)
nicknames[bugid] = assignee
bug_assignee_map[bugid] = assignee
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug_assignee_map dict does not seem to be used anywhere. Do we need it after the changes in this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants