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

Don't show new builds in collapsed overview rows #1723

Merged
merged 1 commit into from
Jun 15, 2017

Conversation

spadgett
Copy link
Member

Only show Pending, Running, Failed, and Error in the collapsed row.
Don't show new builds, but update the toast notification to say that the
build is queued.

Fixes #1687

@spadgett spadgett requested a review from jwforres June 15, 2017 19:11
var displayName = getBuildDisplayName(build, buildConfig.metadata.name);
var runPolicy = _.get(buildConfig, 'spec.runPolicy');
if (runPolicy === 'Serial' || runPolicy === 'SerialLatestOnly') {
details = "The build has been queued with run policy " + camelToLower(runPolicy) + ".";
Copy link
Member

Choose a reason for hiding this comment

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

sentence seems like it reads strangely to me

maybe "This build has been queued under a serial run policy." and not worry about the distinction between serial and serial latest only? The important thing is that its not parallel.

alternatively "This build is configured to run serially and has been added to the queue."

@spadgett
Copy link
Member Author

updated

if (runPolicy === 'Serial' || runPolicy === 'SerialLatestOnly') {
message = _.capitalize(buildType) + " " + displayName + " successfully queued.";
details = "Builds for " + buildConfig.metadata.name + " are configured to run one at a time.";
// details = "This build has been configured to run serially and has been added to the queue.";
Copy link
Member

Choose a reason for hiding this comment

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

remove this comment?

Only show Pending, Running, Failed, and Error in the collapsed row.
Don't show new builds, but update the toast notification to say that the
build is queued.
@spadgett
Copy link
Member Author

Comment removed, thanks

@jwforres
Copy link
Member

[merge][severity:bug]

@openshift-bot
Copy link

Evaluated for origin web console merge up to 7acebf8

@openshift-bot
Copy link

openshift-bot commented Jun 15, 2017

Origin Web Console Merge Results: SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin_web_console/1550/) (Base Commit: c0d9ac2) (PR Branch Commit: 7acebf8) (Extended Tests: bug)

@openshift-bot openshift-bot merged commit 4bd3b4a into openshift:master Jun 15, 2017
@spadgett spadgett deleted the overview-new-builds branch June 22, 2017 16:41
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