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

Fix binding ready logic #2154

Merged
merged 1 commit into from
Sep 25, 2017
Merged

Conversation

spadgett
Copy link
Member

The binding ready logic was flipped in the service-binding component, so the View Secret link was showing up at the wrong time.

openshift web console 2017-09-25 07-51-38

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)"
Copy link
Member Author

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.)

Copy link
Member Author

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)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @spadgett

@spadgett
Copy link
Member Author

[merge]

@spadgett
Copy link
Member Author

@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.

@openshift-bot
Copy link

Evaluated for origin web console merge up to 88343c9

@openshift-bot
Copy link

openshift-bot commented Sep 25, 2017

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)

@ncameronbritt
Copy link

ncameronbritt commented Sep 25, 2017 via email

@openshift-bot openshift-bot merged commit 6dde77e into openshift:master Sep 25, 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.

None yet

4 participants