Skip to content

Avoid warning icon flicker for deployment configs #2419

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

Merged
merged 1 commit into from
May 22, 2015

Conversation

spadgett
Copy link
Member

Don't show the missing deployment config warning until the deployment
configs have finished loading to avoid flicker.

Fixes #2411

@spadgett
Copy link
Member Author

@liggitt PTAL. Passing undefined to angular.forEach() doesn't cause an error.

<overview-deployment
rc="deployment"
deployment-config-id="deploymentConfigId"
deployment-config="deploymentConfigs[deploymentConfigId]"
deployment-config-missing="deploymentConfigs && deploymentConfigs[deploymentConfigId] == null"
Copy link
Contributor

Choose a reason for hiding this comment

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

deploymentConfigs && !deploymentConfigs[deploymentConfigId]?

Copy link
Member Author

Choose a reason for hiding this comment

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

The deploymentConfig == null check was previously in _overview-deployment.html. I wasn't sure if it was that way for a reason.

Copy link
Contributor

Choose a reason for hiding this comment

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

probably not...

@spadgett spadgett force-pushed the overview-warning-flicker branch from 646528d to d023677 Compare May 21, 2015 18:54
@spadgett
Copy link
Member Author

@liggitt please take another look

deploymentConfigId: '=',
deploymentConfigMissing: '=',
differentService: '=',
Copy link
Contributor

Choose a reason for hiding this comment

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

just noticed this should be deploymentConfigDifferentService

@spadgett spadgett force-pushed the overview-warning-flicker branch from d023677 to 0224307 Compare May 21, 2015 19:12
@liggitt liggitt self-assigned this May 21, 2015
@spadgett spadgett force-pushed the overview-warning-flicker branch from 0224307 to 1f116a9 Compare May 21, 2015 19:33
deployment-config="deploymentConfigs[deploymentConfigId]"
deployment-config-different-service="!deploymentConfigsByService[''][deploymentConfigId]"
deployment-config-missing="deploymentConfigs && !deploymentConfigs[deploymentConfigId]"
deployment-config-different-service="deploymentConfigs[deploymentConfigId] && !deploymentConfigsByService[serviceId][deploymentConfigId]"
Copy link
Contributor

Choose a reason for hiding this comment

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

s/serviceId/''/

Don't show the missing deployment config warning until the deployment
configs have finished loading to avoid flicker. Update the warning
tooltip so that the raw Angular expression isn't visible.

Fixes openshift#2411
Fixes openshift#2415
@spadgett spadgett force-pushed the overview-warning-flicker branch from 1f116a9 to 9853f58 Compare May 21, 2015 19:49
@liggitt
Copy link
Contributor

liggitt commented May 21, 2015

LGTM [merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/2051/) (Image: devenv-fedora_1594)

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/2333/)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 9853f58

openshift-bot pushed a commit that referenced this pull request May 22, 2015
@openshift-bot openshift-bot merged commit 9045f40 into openshift:master May 22, 2015
@spadgett spadgett deleted the overview-warning-flicker branch May 27, 2015 12:41
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.

Warning icons flash when loading overview page
3 participants