-
Notifications
You must be signed in to change notification settings - Fork 887
update importBlacklistRule to use regular expressions #3504
Conversation
just noticed the label, maybe there is a way to do this in a backward compatible manner? |
Thanks Mike for the feedback. When originally coding this, I was hoping to make it backward compatible to eliminate impacts to any existing configuration. Ultimately, I favored the approach chosen for the following reasons:
If there’s community sentiment toward introducing the regular expression capability without a breaking change, I can definitely update the code in this PR. Anyone have any thoughts about this? |
I'd prefer to do this in a backwards compatible manner. Regex search is slower than |
@adidahiya @ajafff |
Please proceed with the backwards compatible solution. |
merge? |
I'm sorry this took us so long to get to. It seems to be a bit at odds with import-blacklist as it exists now. Can you update it? |
Tangentially, this should also fix #2806 |
I should be able to push an update within the next day or two. |
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.
Hello guys, thank you for merging this PR. This is exactly what we've needed. |
@leachiM2k it wasn't released with 5.12.1. You can find out if a commit is in a release by clicking on the hash in the merge message: and then looking at the tags list here: there are no tags, so it is unreleased. this will be released in the next minor version. |
PR checklist
Overview of change:
The current importBlacklistRule only allows exact match blacklisting. To allow greater flexibility, would like to update this rule to use regular expression pattern match blacklisting. Existing users of the importBlacklistRule would need to make a small update to retain expected behavior, specifically they'd need to place ^ at the start and $ at the end of their existing blacklist entries as shown in the updated documentation.
Is there anything you'd like reviewers to focus on?
CHANGELOG.md entry:
[enhancement]
import-blacklist
now supports regular expression patterns for blacklisting