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

Cleaning up Node calls to make only one call for the computer item #179

Merged
merged 1 commit into from
May 29, 2015

Conversation

stjohnjohnson
Copy link
Contributor

Currently calls to things like is_offline? and is_idle? make two calls to /computer: one to get the complete list and then another to find the index value of the computer you're looking for.

Almost all of my Jenkins instances have hundreds of computers, so this is quite expensive.

This change here makes all of these methods access JUST the computer and JUST the data you need, and only once.

@stjohnjohnson
Copy link
Contributor Author

Note, I know this will conflict with #178 if that is merged first. Just let me know and I will rebase/fix in whatever order you push.

@stjohnjohnson
Copy link
Contributor Author

Helps with #89

@stjohnjohnson
Copy link
Contributor Author

@arangamani would love a review of this as well :)

@arangamani
Copy link
Owner

I'll cover everything when I get home tonight 😸

@arangamani
Copy link
Owner

I would appreciate if you could rebase this PR.

@stjohnjohnson
Copy link
Contributor Author

@arangamani rebased!!

arangamani added a commit that referenced this pull request May 29, 2015
Cleaning up Node calls to make only one call for the computer item
@arangamani arangamani merged commit 46605b8 into arangamani:master May 29, 2015
@arangamani
Copy link
Owner

Thanks for the contributions @stjohnjohnson. I'll work on making a release sometime this weekend.

@stjohnjohnson
Copy link
Contributor Author

No problem, let me know the new version when you do release it. :)

@stjohnjohnson stjohnjohnson deleted the SimplifyNodeCalls branch May 29, 2015 17:29
@stjohnjohnson
Copy link
Contributor Author

@arangamani is there a version available yet?

@stjohnjohnson
Copy link
Contributor Author

ping :)

@arangamani
Copy link
Owner

@stjohnjohnson Oops. I've been slacking. On it now.

@arangamani
Copy link
Owner

@stjohnjohnson Done, 1.4.0 is published now. Thank you for your patience.

@stjohnjohnson
Copy link
Contributor Author

Thanks!!

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.

2 participants