fixes #228
3 new commits added
rebased onto 8a2e08e199983ccf66860ab2a6546e115836d3e5
I'm not sure if the words 'allowed' and 'permissions' are the right terminology here. Perhaps the config could look more like:
[filters] methods = maven,runroot,distRepo states = FAILED,CANCELED
Also, probably need to be more friendly and accept , and or as a separator in the config
,
For the if allowed_methods == '*' check. I wonder if we shouldn't just use multi_fnmatch.
if allowed_methods == '*'
The disallowed_methods global seems like it is supposed to be complementary to the allowed_methods one, but it isn't configurable like the other.
disallowed_methods
I think we might want to hard-code the exclusion of taskNotification. Also tagNotification and buildNotification.
I don't know if we need that sanity check for the existence of the task. We're handling callback -- I think we can trust the data.
For recipients, we should probably exclude hosts and disabled users.
We can pick this up again for 1.17
rebased onto a6e0ce590c480b6d1fed9db2967965d720b9ffa2
updated
I would add here, that defining disallowed_methods never override *Notification - it will be added anyway.
Can you create some global CONFIG outside of this function? Every call to this function will open/parse that file, which is not effective, neither expected (I would expect, that any change to any config will be reflected only after kojid restart)
Some simple description should be also added to docs/source/plugins.rst
docs/source/plugins.rst
Pull-Request has been closed by julian8628
fixes #228