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

Filter expert: Docs fix, treat false as false for filter_regex and add logging #2499

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

Conversation

sebix
Copy link
Member

@sebix sebix commented May 10, 2024

  • Docs: fix syntax in filter expert bot documentation
  • filter expert: treat filter_regex false as False
    if the parameter
    filter_regex: false
    was set, the bot treated this as true
    with this patch, false is treated as false
  • filter expert: add debugging output for comparisons
    if users or devs run the bot in DEBUG log level, there was no useful
    output yet.
    This change adds two log statements, showing which comparision was made

sebix added 3 commits May 10, 2024 12:07
if the parameter
filter_regex: false
was set, the bot treated this as true
with this patch, false is treated as false
if users or devs run the bot in DEBUG log level, there was no useful
output yet.
This change adds two log statements, showing which comparision was made
@sebix sebix added this to the 3.3.1 milestone May 10, 2024
@@ -64,7 +64,7 @@ def init(self):
self.filter = False

self.regex = False
if self.filter_regex is not None:
if self.filter_regex is not None and self.filter_regex is not False:
Copy link
Contributor

Choose a reason for hiding this comment

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

If this attribute is empty or evaluates to false

In such case, the if not self.filter_regex would be better

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

Successfully merging this pull request may close these issues.

None yet

2 participants