-
Notifications
You must be signed in to change notification settings - Fork 232
Update builds controller to use getPreferredVersion #2120
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
Update builds controller to use getPreferredVersion #2120
Conversation
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.
Not seeing the view update. Was that missed on commit?
app/scripts/controllers/builds.js
Outdated
Logger, | ||
$location, | ||
BuildsService, | ||
ProjectsService) { |
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.
Let's sort the dependencies to keep the lists manageable
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.
sort done
60d9848
to
efea61c
Compare
Yeah, this one didn't need a view update as there are no |
app/scripts/controllers/builds.js
Outdated
@@ -20,6 +30,9 @@ angular.module('openshiftConsole') | |||
|
|||
var buildConfigForBuild = $filter('buildConfigForBuild'); | |||
|
|||
$scope.buildsVersion = APIService.getPreferredVersion('builds'); | |||
$scope.buildConfigsVersion = APIService.getPreferredVersion('buildconfigs'); |
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.
Let's not use $scope
vars if these aren't used in the view
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.
sounds good. kept that for consistency with other views, but agree, no point in blowing up $scope
.
efea61c
to
4d0f64a
Compare
updated |
[merge] |
Evaluated for origin web console merge up to 4d0f64a |
Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin_web_console/260/) (Base Commit: 6dde77e) (PR Branch Commit: 4d0f64a) |
@spadgett