Bug 1086227 - [fork][origin_ui_174]Could not add regular team as a member of domain by admin role
Summary: [fork][origin_ui_174]Could not add regular team as a member of domain by adm...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jordan Liggitt
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-10 12:06 UTC by XiuJuan Wang
Modified: 2015-05-15 02:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 21:39:25 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description XiuJuan Wang 2014-04-10 12:06:22 UTC
Description of problem:
Could not add regular team  as a member of domain by admin role.Have set team owner to get "max_teams" capability.
Could update or remove a regular team from domain by admin role.
And could add/remove/update a global team by admin role.

Version-Release number of selected component (if applicable):
rhc-1.23.0 build from fork_ami_origin_ui_174_1158


How reproducible:
always

Steps to Reproduce:
1.Create a regular team team1 by team owner xiuwang+ab 
2.Add xiuwang1 as admin member of domain
3.Add team1 as admin member of domain by admin role
rhc member-add team1 --type team  -n abear  -r admin -l xiuwang1
or
rhc member-add --ids team1_id  --type team  -n abear  -r admin -l xiuwang1 

Actual results:
Step 3:
$ rhc member-add team1 --type team  -n abear  -r admin -l xiuwang1 
Adding 1 administrator to domain ... No team with name 'team1' found.
$ rhc member-add --ids 534680f00c8c51632b000049  --type team  -n abear  -r admin -l xiuwang1 
Adding 1 administrator to domain ... There is no team with identifier 534680f00c8c51632b000049.

Expected results:
Could add regular team  as a member of domain by admin role

Additional info:

Comment 1 Jordan Liggitt 2014-04-10 20:50:37 UTC
Only a team's owner can add them to a domain. Will improve the message when adding by name to "You do not have a team named '...'."

Will merge improved message in https://github.com/openshift/rhc/pull/576

Comment 2 XiuJuan Wang 2014-04-11 09:32:24 UTC
test on rhc-1.23.0 build from fork_ami_origin_ui_174_1162

The global team message not update.

1.# rhc member-add Global team 1 --type team --global -n curecat
Adding 3 editors to domain ... 
No global team found with the name 'Global'. Did you mean one of the following?
Global team 1

2.# rhc member-add 11  --type team --global -n curecat
Adding 1 editor to domain ... No global team found with the name '11'.

Comment 3 Jordan Liggitt 2014-04-11 15:47:51 UTC
The global team message wasn't supposed to be updated.

1. Should be `rhc member-add "Global team 1" --type team --global -n curecat`

2. If there is no global team with the name 11, then that message is correct.

Comment 4 openshift-github-bot 2014-04-11 16:47:28 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/528c54c2981d1cf67051fc5a8a3d39a5bdac1a39
Bug 1086227: Improve message when a team cannot be found while adding

Comment 5 XiuJuan Wang 2014-04-14 07:12:43 UTC
Verified on rhc-1.23.1

1.Add multiple partial global team matches but without one exact match
$ rhc member-add team --type team --global -n curedogs 
Adding 1 editor to domain ... 
No global team found with the name 'team'. Did you mean one of the following?
Global team 1, team1, team11

2.Add no-existed global team.
$ rhc member-add  21  --type team --global -n curedogs
Adding 1 editor to domain ... No global team found with the name '21'.


Note You need to log in before you can comment on or make changes to this bug.