Skip to content
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

Viewers see empty env var input rather than message when no env vars #1438

Closed
spadgett opened this issue Apr 18, 2017 · 5 comments
Closed

Viewers see empty env var input rather than message when no env vars #1438

spadgett opened this issue Apr 18, 2017 · 5 comments
Assignees
Labels
area/usability kind/bug Categorizes issue or PR as related to a bug. priority/P3

Comments

@spadgett
Copy link
Member

I thought this was a little odd. I logged in as a user with view role in the project. Instead of seeing a message saying there are no env vars, I see two readonly inputs.

screen shot 2017-04-18 at 12 47 15 pm

@spadgett spadgett added area/usability kind/bug Categorizes issue or PR as related to a bug. priority/P3 labels Apr 18, 2017
@benjaminapetersen
Copy link
Contributor

hmm. yeah that is weird. ill take a look

@benjaminapetersen
Copy link
Contributor

I can reproduce this. So Its probably something we need to either 1. put inside KVE, or 2. update all the templates where KVE appears with an ng-if & an alt message. @rhamilto

Do we have a preference either way? I lean towards the ng-if since we are not limited to just env vars.

@spadgett
Copy link
Member Author

@rhamilto
Copy link
Member

Do we have a preference either way? I lean towards the ng-if since we are not limited to just env vars.

Agreed. No point in showing the KVE if there is nothing to display (i.e., read only env vars).

@benjaminapetersen
Copy link
Contributor

benjaminapetersen commented Apr 18, 2017

Ok, I can find 10 instances of KVE in readonly mode, I believe each one should have a message like this, but will check them over.

  • browse/build.html
  • browse/deployment.html
  • browse/build-config.html (partial, see The BuildConfig environment tab is awkward for a user with view permissions #1969)
  • browse/deployment-config.html
  • browse/pod.html
  • browse/replica-set.html
  • browse/stateful-set.html
  • create/fromimage.html (not relevant issue for the create flow)
  • directives/label-editor.html
    • directives/deploy-image.html
    • directives/process-template.html
    • edit/autoscaler.html
  • directives/next-steps.html (not relevant)

(branch: bpeterse/kve-hide-empty)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/usability kind/bug Categorizes issue or PR as related to a bug. priority/P3
Projects
None yet
Development

No branches or pull requests

4 participants