-
Notifications
You must be signed in to change notification settings - Fork 29
Add ability to view and manage roles for spaces and orgs. #48
Conversation
new module to allow management of space roles
New module for management of organization roles
Hey jmprice! Thanks for submitting this pull request! All pull request authors must have a Contributor License Agreement (CLA) on-file with us. Please sign the appropriate CLA (individual or corporate). When sending signed CLA please provide your github username in case of individual CLA or the list of github usernames that can make pull requests on behalf of your organization. |
@jmprice is part of an organization that has signed the corporate CLA. This contribution can go forward from that perspective. |
@jmprice conceptually, i agree that role management actions should be in the cli. not having tried the interactions myself, they appear to be in the right spirit of things looking at the source. but i would like to try them. however, these commits do not have associated tests from what i saw, and i suspect the eng team will be hesitant to accept it as-is. i have asked the team working on the cli to look into this. |
I've reviewed the pull request and think it needs some work. Foremost, the commit needs tests to verify that the functionality is good. Take a look at the file called cli_helper.rb -- it provides some functions for simulating the command line experience and capture/asserting on output. Some notes on code:
if quiet?
puts space.name
return
end I'm not sure I understand the purpose of this block. What's the intention of the --quiet flag and why should the program exit here?
When you've added the specs, rebase and re-submit the pull request. |
Thank you for reviewing the code. I am not a ruby developer by any stretch of the imagination but was frustrated by the lack of tools for managing roles in orgs and spaces so I created something that works for me. I was hoping you would find it useful and incorporate the idea into the cf gem itself. |
Hehe, good catch Matthew. Clicked the wrong button. Reopening... |
@jmprice just in case you do not have the time/interest in getting the role management code to adjust to some of the engineering feedback, you have my commitment that we'll put role management in our backlog of cli features. |
Hey James, thank you. I will definitely try to refine my code but it will probably be a while until I'm able to get back to it, other work has me pretty swamped for the immediate future. |
No description provided.