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

Fixing bug where creating from a template file was busted #1007

Merged
merged 1 commit into from
Dec 8, 2016
Merged

Fixing bug where creating from a template file was busted #1007

merged 1 commit into from
Dec 8, 2016

Conversation

rhamilto
Copy link
Member

@rhamilto rhamilto commented Dec 8, 2016

@@ -118,6 +118,7 @@ angular.module("openshiftConsole")
return;
}

$scope.resource = resource;
Copy link
Member

Choose a reason for hiding this comment

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

so it doesn't need to be on the scope unless the view is using it, just needs to be stored as a local var for the controller

@@ -118,6 +118,7 @@ angular.module("openshiftConsole")
return;
}

$scope.resource = resource;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't need to set this as a scope var, can just use resource below when you call createFromTemplateURL below

Copy link
Member Author

Choose a reason for hiding this comment

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

Resource is scoped to only this function. How do I get it out of this function?

@spadgett
Copy link
Member

spadgett commented Dec 8, 2016

@rhamilto can you sweep the code for other places where this might be a problem (templates or image streams)

@rhamilto
Copy link
Member Author

rhamilto commented Dec 8, 2016

Ok. I think I got it this time. Thanks, @jwforres and @spadgett.

@rhamilto can you sweep the code for other places where this might be a problem (templates or image streams)

Done. We should be good now.

@spadgett
Copy link
Member

spadgett commented Dec 8, 2016

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 4809bf6

@openshift-bot
Copy link

openshift-bot commented Dec 8, 2016

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/826/) (Base Commit: b959663)

@openshift-bot openshift-bot merged commit d257d66 into openshift:master Dec 8, 2016
@rhamilto rhamilto deleted the create-from-file-template branch December 8, 2016 20:39
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