-
-
Notifications
You must be signed in to change notification settings - Fork 874
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
Export resource_class_map and fix bug in Role.add_user() #1002
Export resource_class_map and fix bug in Role.add_user() #1002
Conversation
The reason for exporting resource_class_map is to allow an external module to support additional resource types without the need to edit resources.py (I had edited it previously but this became a maintenance nightmare). The Role.add_user() bug is (I hope) an obvious one: the groups argument was ignored.
looks like the maintainers want to have the ci system back up and running before agreeing to any new merges. if you want to contribute to get yr pr through have a look here => #896 |
@wlupton Closing due to of updates. If you can rebase it tell us to reopen it. |
That's fine @ssbarnea, but is the reason for closure because it needs rebasing (easy to fix) or the reason given earlier about getting the ci system back up? |
CI was fixed, I closed as it needed rebase. If you find it useful just make another PR. Only the original OP can update it so that is why I closed it. |
Great (sorry, I didn't realize). I've rebased and pushed. Thanks. |
@ssbarnea, I don't see an option to re-open it. Are you able to do this? If not, I can easily create a new PR. |
Create new one, I am unable to press the button either, not sure why. |
OK. Will do. Also, did you have any thoughts on the other items in the PR's initial commen? |
nope |
The reason for exporting
resource_class_map
is to allow an external module to support additional resource types without the need to edit resources.py (I had edited it previously but this became a maintenance nightmare).The
Role.add_user()
bug is (I hope) an obvious one: thegroups
argument was ignored.Some of my local extensions conflict with more recent extensions in
master
. For example, I supported notification schemes and permission schemes, but I took a different approach: I also added new resource types, and the methods return resources rather than dictionaries. For example:Master:
Mine:
There was already some level of
Role
support, and I took this approach to extending the interface (this is in a wrapper class that calls methods from the existing master class when it can):Please let me know if you'd like me to contribute any of these extensions.