Skip to content

Conversation

@willdurand
Copy link
Member

Fixes mozilla/addons#7281


We decided to fix the issue above by excluding a single rule at a time (for now).

@willdurand willdurand requested review from a team, bobsilverberg and diox and removed request for a team March 24, 2020 15:48
@willdurand
Copy link
Member Author

Also requesting @diox's review because we discussed this issue during today's meeting.

]


class ExcludeMatchedRuleFilter(SimpleListFilter):
Copy link
Member

Choose a reason for hiding this comment

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

I would have expected you to inherit from ScannerRuleListFilter which takes care of the choices/lookups for you, you just have to customize the queryset. Did you look into that ? Does that not work ?

Copy link
Member Author

Choose a reason for hiding this comment

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

I wasn't able to customize the default entry. With this patch, it looks like this (and that will, hopefully, avoid confusions):

Screen Shot 2020-03-24 at 17 16 43

Copy link
Member

Choose a reason for hiding this comment

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

Ok

@willdurand willdurand merged commit d1ed6e7 into master Mar 25, 2020
@willdurand willdurand deleted the exclude-rule-filter branch April 29, 2020 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants