-
-
Notifications
You must be signed in to change notification settings - Fork 28
Bug 1446236 - BugmailFilter: Divorce from Review extension #36
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
base: main
Are you sure you want to change the base?
Conversation
@@ -356,8 +356,10 @@ sub _should_drop { | |||
or $relationship & $bit_compwatch | |||
); | |||
$rel_map[10] = !$rel_map[9]; | |||
$rel_map[11] = $bug->is_mentor($user); | |||
$rel_map[12] = !$rel_map[11]; | |||
if (Bugzilla->have_extension('Review')) { |
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.
Requires #35.
return \@relations; | ||
} | ||
|
||
use constant FILTER_RELATIONSHIPS => _gen_relations(); |
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.
Is this right?
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.
needs to use has_extension
65c0b7d
to
ca93f18
Compare
@dylanwh Done, but... it seems that this and the other PRs were based on the |
Don't include or process Mentor fields if the Review extension isn't loaded.
Calculating it eagerly is problematic as it would have to be done at extension initialization, and we can't meaningfully query whether other extensions are loaded during extension initialization. Do it lazily and cache the result instead.
a4ccb33
to
d838804
Compare
Don't include or process Mentor fields if the Review extension isn't loaded.