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

Bug 1496687 - Consistent binding names #2187

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

spadgett
Copy link
Member

  • Show binding name rather than secret name in collapsed overview row to be consistent with what we show when expanded.
  • Remove "Secret" heading above binding name to avoid confusion. We shouldn't label a ServiceBinding as a Secret since they're different resources.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1496687

openshift web console 2017-09-29 07-54-40

openshift web console 2017-09-29 07-55-31

cc @ncameronbritt

* Show binding name rather than secret name in collapsed overview row to
  be consistent with what we show when expanded.
* Remove "Secret" heading above binding name to avoid confusion. We
  shouldn't label a ServiceBinding as a Secret since they're different
  resources.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1496687
@ncameronbritt
Copy link

@spadgett We should definitely address the inconsistency btw collapsed and expanded, but I want to think through which option would be more helpful for the user to see. I think the most confusing case we came up with was when you had multiple bindings and wanted to make sure you were deleting the correct one. Isn't it the secret that ends up getting tied to the application, not the binding? Can the user even do anything with the binding object? Also worth thinking about how things will be when pod presets are in.

@spadgett
Copy link
Member Author

I think the most confusing case we came up with was when you had multiple bindings and wanted to make sure you were deleting the correct one.

To me, the most confusing thing is to show a list of bindings, and it's not binding names that we show, but secret names. If you run oc get servicebindings on the CLI, you'll see a totally different list.

Some users also don't have authority to view secrets, but will be able view bindings.

Can the user even do anything with the binding object?

You can check status and delete bindings. You can see what parameters were used for the binding. At some point, you might be able to update binding parameters.

If the user wants to do anything with a binding on the CLI, they'll need to know the name.

Also worth thinking about how things will be when pod presets are in.

True. Right now (in 3.6 tech preview), I believe we should the application name with the binding name in smaller, muted text.

FWIW, in the past, I've regretted it every time we've decided to pretend one thing is really another. Deployments vs replication controllers is one example. HPA target CPU is another example. We've gotten a lot of bugs like #1590 because what we show in the web console is different than the CLI. I feel like in the end it makes things more confusing and does the user a disservice.

@spadgett
Copy link
Member Author

Also: you can always get to the secret from the binding, but you can't get to the binding from the secret.

@ncameronbritt
Copy link

I really thought that in 3.6 tech preview we were showing the secret or the application. I'm pretty sure that's how we designed the Provisioned Service details page too. I feel like either the binding object didn't exist when we were first working on these designs, or if it did, we just weren't aware of it.

@spadgett
Copy link
Member Author

Got OK from @ncameronbritt on this after talking in person (thanks @ncameronbritt)

[merge]

@spadgett
Copy link
Member Author

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 425e3f9

@openshift-bot
Copy link

openshift-bot commented Sep 29, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/293/) (Base Commit: a26e359) (PR Branch Commit: 425e3f9)

@openshift-bot openshift-bot merged commit 9b66380 into openshift:master Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants