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

Makes all components support jobs that are currently building - from initial work by macklinu #19

Closed
wants to merge 3 commits into from

Conversation

stjohncj
Copy link
Contributor

No description provided.

@@ -35,7 +35,7 @@ class JobBuildsHistogram extends Component {
const data = builds.map(build => ({
x: build.number,
y: build.duration / 1000 / 60, // converts ms to mn
result: build.result ? build.result.toLowerCase() : 'unkown'
result: build.result ? build.result.toLowerCase() : 'unknown'
Copy link
Owner

Choose a reason for hiding this comment

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

why not using the helper here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what helper you mean? I was just fixing the typo in the existing code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, if you mean from util.js...that is because build.result will be undefined so it won't hit the .toLowerCase() method that causes the failure.

@stjohncj
Copy link
Contributor Author

I have tested the components against building jobs and the app will now rotate through dashboards successfully. Can this be merged? Thanks!

@plouc
Copy link
Owner

plouc commented May 26, 2016

@stjohncj you should rebase your PR against the master branch, because I've merged the PR from @macklinu

@stjohncj stjohncj closed this Jun 1, 2016
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

2 participants