Skip to content

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

Conversation

benjaminapetersen
Copy link
Contributor

@benjaminapetersen benjaminapetersen commented Sep 20, 2017

Copy link
Member

@spadgett spadgett left a 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?

Logger,
$location,
BuildsService,
ProjectsService) {
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sort done

@benjaminapetersen benjaminapetersen force-pushed the bpetersen/trello-api-groups-builds branch from 60d9848 to efea61c Compare September 25, 2017 14:44
@benjaminapetersen
Copy link
Contributor Author

Yeah, this one didn't need a view update as there are no canI checks in the matching view.

@@ -20,6 +30,9 @@ angular.module('openshiftConsole')

var buildConfigForBuild = $filter('buildConfigForBuild');

$scope.buildsVersion = APIService.getPreferredVersion('builds');
$scope.buildConfigsVersion = APIService.getPreferredVersion('buildconfigs');
Copy link
Member

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

Copy link
Contributor Author

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.

@benjaminapetersen benjaminapetersen force-pushed the bpetersen/trello-api-groups-builds branch from efea61c to 4d0f64a Compare September 25, 2017 15:23
@benjaminapetersen
Copy link
Contributor Author

updated

@spadgett
Copy link
Member

[merge]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 4d0f64a

@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/260/) (Base Commit: 6dde77e) (PR Branch Commit: 4d0f64a)

@openshift-bot openshift-bot merged commit 8252f85 into openshift:master Sep 25, 2017
@benjaminapetersen benjaminapetersen deleted the bpetersen/trello-api-groups-builds branch September 25, 2017 17:18
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