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

[matching-email] Support blacklist when strict matching is False #229

Merged
merged 2 commits into from
Dec 16, 2019

Conversation

valeriocos
Copy link
Member

This code addresses #228, thus refactors the code to support the blacklisting of emails when the strict mode is set to False. The method _check_blacklist is created and the method check_email is modified accordingly (by removing the logic that blacklists emails).

Tests have been added accordingly.

Furthermore this PR removes the method _filter_emails which isn't used either in sortinghat or in other grimoirelab components.

Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

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

Please check my comments.

tests/test_matcher_email.py Outdated Show resolved Hide resolved
tests/test_matcher_email.py Outdated Show resolved Hide resolved
sortinghat/matching/email.py Outdated Show resolved Hide resolved
sortinghat/matching/email.py Outdated Show resolved Hide resolved
sortinghat/matching/email.py Outdated Show resolved Hide resolved
This code refactors the code to support the blacklisting of
emails when the strict mode is set to `False`. Thus, the
method `_check_blacklist` is created and the method
`check_email` is modified accordingly (by removing the
logic that blacklists emails).

Tests have been added accordingly.

Signed-off-by: Valerio Cosentino <valcos@bitergia.com>
This code removes the method `_filter_emails` which
isn't used either in sortinghat or in other
grimoirelab components.

Signed-off-by: Valerio Cosentino <valcos@bitergia.com>
@valeriocos
Copy link
Member Author

please @sduenas check it again

Copy link
Member

@sduenas sduenas left a comment

Choose a reason for hiding this comment

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

LGTM

@sduenas sduenas merged commit b3f7833 into chaoss:master Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants