-
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
Add whiteboard flag to webcompat sightline bugs #2498
base: master
Are you sure you want to change the base?
Conversation
4f05ba2
to
96524e0
Compare
96524e0
to
8ab569c
Compare
8ab569c
to
8f99de6
Compare
8f99de6
to
6e290ed
Compare
This should be set on all bugs that are part of the webcompat metrics set, and by no bugs that aren't. This initial approach just gets all the bugs that are either in that set or have the whiteboard entry, and implements the logic to update them in the client. Given that we expect initially to have ~700 bugs in that set, this means we need to set the maximum number of bugs to update to something rather high.
6e290ed
to
4cb9b8e
Compare
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.
Thank you! LGTM! I have only minor comments.
We need to add this new rule to the bot's wiki page before deploying the new rule.
elif self.WHITEBOARD_ENTRY in whiteboard: | ||
self.autofix_changes[bug_id] = { | ||
"whiteboard": whiteboard.replace(self.WHITEBOARD_ENTRY, "") | ||
} | ||
return bug |
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.
nit: this could improve the readability a bit.
elif self.WHITEBOARD_ENTRY in whiteboard: | |
self.autofix_changes[bug_id] = { | |
"whiteboard": whiteboard.replace(self.WHITEBOARD_ENTRY, "") | |
} | |
return bug | |
else: | |
if self.WHITEBOARD_ENTRY in whiteboard: | |
self.autofix_changes[bug_id] = { | |
"whiteboard": whiteboard.replace(self.WHITEBOARD_ENTRY, "") | |
} | |
return bug |
self.sightline_ids = set() | ||
|
||
def description(self) -> str: | ||
return "Web Compat site report in the sightline metric set" |
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.
The description will be used as the title of the email.
return "Web Compat site report in the sightline metric set" | |
return "Bugs with the [webcompat:sightline] whiteboard tag updated" |
@@ -75,4 +75,7 @@ python -m bugbot.rules.duplicate_copy_metadata --production | |||
# Add `webcompat:platform-bug` keyword to bugs without a platform keyword | |||
python -m bugbot.rules.webcompat_platform_without_keyword --production | |||
|
|||
# Add `[webcompat:sightline]` whiteboard entry to bugs in sightline metric set |
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.
We also remove it when it is applicable.
# Add `[webcompat:sightline]` whiteboard entry to bugs in sightline metric set | |
# Update `[webcompat:sightline]` whiteboard entry to bugs in sightline metric set |
Checklist
to-be-announced
tag added if this is worth announcing