-
Notifications
You must be signed in to change notification settings - Fork 26
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
Make the list of banned users configurable #99
Comments
I'm new to all this, and I'd really like to help because I love collecting the fedora badges. If I understand this issue correctly, is it asking to just have the "banned_usernames" variable name changed to "skip_users"? I'm not sure what "make a list of banned users configurable" means. Configurable how? Is there some type of command line tool, or is there a UI I'd need to tie this into for that? Thanks for any guidance you can give. I've read a bunch of the documentation on the badges rewrite still wrapping my head around it all. |
If you look at Lines 93 to 110 in a230c75
you can see the list of "banned" users is statically maintained in the code. My guess is that should be runtime configurable (e.g. maintained in and read from a config file or such). I'm not sure what runtime configuration is currently used. I guess some Python or YAML file. Aurélien will know for sure. The name of that parameter should be Thanks for taking a deep dive! |
I'll look into the documentation about runtime configuration and see if I can figure it out while I wait for confirmation. Thanks again! |
Looks like I found my answer by looking at the readme lol. I just assumed it was the same kinda stuff from https://fedora-arc.readthedocs.io/en/latest/badges/index.html. smh |
Hey @jeffiscow2 ! The configuration for the consumer is in the Fedora Messaging TOML file (described here). There's an example in The content of the |
Hey @jeffiscow2 , are you still interested in working on this? |
@abompard yeah I am. Just got busy for a bit with the kids starting school and even after reading everything I'm still lost. I'll need more guidance for sure, lol. |
Sure, just ask when you're ready. |
I made some modifications to rules.py (changed the BadgesRule class) and created a skip_users.toml with the list of skipped usernames. Let me know if I'm on the right track. I should be home all day to respond if you need to tell me anything. |
Could you create a draft pull request? It would make reviewing easier. Thanks! Also, you can use the |
In
fedbadges/rules.py
, there's a list of banned users that should be skipped when awarding badges. This should be in the configuration (and please rename it toskip_users
, we don't actually "ban" bodhi or pagure).The text was updated successfully, but these errors were encountered: