Hide Forgot
Description of problem: For normal user, in From File tab, create existent resource (like quota, limit, pv), it pops up a window saying 'already exists' then prompts 'cannot update'. For normal user, it is better to omit that window directly. Version-Release number of selected component (if applicable): fork_ami_openshift3_userinterface_public_546_222 How reproducible: Always Steps to Reproduce: 1. oc login and create project xxia-proj 2. Via cluster-admin, create resource (which normal user not allowed to create) like quota in the project oc create -f quota.json --config admin.kubeconfig -n xxia-proj resourcequota "myquota" created 3. Via normal user, login to Openshift web console, click Add to project --> From File --> Browse, select the quota.json file, upload, then Create. (Use json file to reproduce. Yaml is not recognized right now: https://bugzilla.redhat.com/show_bug.cgi?id=1331665) Actual results: 3. It pops up a window saying: resource quota 'myquota' already exists Do you want to replace with the new content? Replace Cancel If click Replace, it shows: User "xxia" cannot update resourcequotas in project "xxia-proj" Expected results: 3. It is better to omit that pop-up window and directly prompt: User "xxia" cannot update resourcequotas in project "xxia-proj" Additional info:
I agree the user experience here could be better. We have a general problem in the console that we don't know what actions a user has permission for. There's no API currently, so we have to make the request and let it fail, then show the error. We can't make the request without prompting the user first. We plan to address this for all actions in the web console when a server API is available.
@Sam then I think we can close or at least pospone this issue since we have to wait for the server API
The following card is for using the what-can-i-do API for disabling actions that a user isn't allowed to perform. We will be able to provide a better experience when we implement that. https://trello.com/c/UQEUgVrY This is working as intended (for now), so closing.