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

rework build list order for oc status #12179

Merged
merged 1 commit into from
Dec 9, 2016

Conversation

gabemontero
Copy link
Contributor

Fixes #6421

@deads2k PTAL

@bparees FYI

@deads2k
Copy link
Contributor

deads2k commented Dec 8, 2016

@openshift/cli-review

@juanvallejo
Copy link
Contributor

[test]

// display the last successful build if specifically requested or we're going to display an active build for context
if lastSuccessfulBuild != nil && (includeSuccess || len(activeBuilds) > 0) {
out = append(out, describeBuildPhase(lastSuccessfulBuild.Build, &passTime, build.BuildConfig.Name, pushTargetResolved))
Copy link
Contributor

Choose a reason for hiding this comment

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

do you actually need to check if lastSuccessBuild!=nil? seems like all this logic works fine even if "firstBuildToDisplay" or "secondBuildToDisplay" ends up getting assigned "nil"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, that looks right on second glance ... I'll push an update in a bit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

update pushed

@gabemontero
Copy link
Contributor Author

The yum repo / mirror issues bit the test run. I'll trigger a new one in a bit.

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 1060f05

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12188/) (Base Commit: 5e81dae)

@gabemontero
Copy link
Contributor Author

gabemontero commented Dec 9, 2016 via email

@bparees
Copy link
Contributor

bparees commented Dec 9, 2016

lgtm [merge]

@openshift-bot
Copy link
Contributor

openshift-bot commented Dec 9, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/12188/) (Image: devenv-rhel7_5515)

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 1060f05

@openshift-bot openshift-bot merged commit 9b4e8a5 into openshift:master Dec 9, 2016
@gabemontero gabemontero deleted the issue6421 branch December 9, 2016 19:33
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.

5 participants