Skip to content

Don't request isimage more than once on page load #557

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
Sep 20, 2016

Conversation

spadgett
Copy link
Member

@spadgett spadgett commented Sep 20, 2016

@jwforres The watch callback happens almost immediately after the get callback in the browse pages, which means we were calling fetchReferencedImageStreamImages a second time before the first call completed. I changed the code to just call it from the watch, and removed some unecessary $scope vars. PTAL

Partially addresses #548

@spadgett spadgett changed the title Don't request isimage more than once on browse pages Don't request isimage more than once on page load Sep 20, 2016
@jwforres
Copy link
Member

We can still get into race situations if we are say coming back from editing a DC, because the watch updates will fire more requests to get the ImageStreamImage

@jwforres
Copy link
Member

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 5b97c7c

@openshift-bot
Copy link

openshift-bot commented Sep 20, 2016

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/414/)

@openshift-bot openshift-bot merged commit ac45a1b into openshift:master Sep 20, 2016
@spadgett spadgett deleted the rs-is-race branch September 21, 2016 20:11
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.

3 participants