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

add some blacklist code to allow exclude collections from syncronization #184 #1025

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

c-schwamborn
Copy link

I hope this isn't to crude as I didn't had much time to dive to deep into the code.

Copy link
Member

@WhyNotHugo WhyNotHugo left a comment

Choose a reason for hiding this comment

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

General idea looks good. Please name this the parameter / list excludes (or maybe ignored?). I'd prefer to avoid the term blacklist.

@@ -87,9 +88,14 @@ def _validate_collections_param(collections):
if collection_name in collection_names:
raise ValueError("Duplicate value.")
collection_names.add(collection_name)
Copy link
Member

Choose a reason for hiding this comment

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

If a name starts with !, you're also adding it to the collection_names list here. You probably want to move this line to an else block after if collection[0] == "!":.

Copy link
Author

Choose a reason for hiding this comment

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

Yes I saw that, but does it matter at this point, as collection_names is temporary here and as I understand only used to weed out duplicate values from the collections list. When I leave the excludes within the collection_names I don't have to bother further with that. Or did I missed something there and collection_names is used for anything else?

I replaced blacklist with excludes, comes in the next push

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