-
Notifications
You must be signed in to change notification settings - Fork 231
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
Fix binding ready logic #2154
Fix binding ready logic #2154
Conversation
The binding ready logic was flipped in the service-binding component, so the View Secret link was showing up at the wrong time.
@@ -46,7 +46,7 @@ | |||
project-name="{{$ctrl.binding.metadata.namespace}}" | |||
stay-on-current-page="true"> | |||
</delete-link> | |||
<a ng-if="('secrets' | canI : 'get') && !($ctrl.binding | isBindingFailed) && !(binding | isBindingReady)" | |||
<a ng-if="('secrets' | canI : 'get') && ($ctrl.binding | isBindingReady)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeff-phillips-18 The failed check isn't necessary because the binding is never ready when the Failed
condition is true. (Checked with @pmorie on this a few days ago.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that the logic before was !(binding | isBindingReady)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @spadgett
[merge] |
@ncameronbritt Is there any reason we don't just make the secret name itself a link instead of having a separate "View Secret" link? I think this might be a hold-over from designs when we had pod presets. |
Evaluated for origin web console merge up to 88343c9 |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/258/) (Base Commit: 8824fc8) (PR Branch Commit: 88343c9) |
That's a holdover from pod presets. Not sure there's any reason not to have
the secret name be the link, and remove the "view secret" action as long as
pod presets are out.
…On Mon, Sep 25, 2017 at 9:03 AM Sam Padgett ***@***.***> wrote:
@ncameronbritt <https://github.com/ncameronbritt> Is there any reason we
don't just make the secret name itself a link instead of having a separate
"View Secret" link? I think this might be a hold-over from designs when we
had pod presets.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2154 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIjxAf56PzxunuOk2hzZnKQNHziCe1-Fks5sl6SGgaJpZM4PinR->
.
|
The binding ready logic was flipped in the service-binding component, so the View Secret link was showing up at the wrong time.