-
Notifications
You must be signed in to change notification settings - Fork 239
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
Conversation
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. |
Helps with #89 |
@arangamani would love a review of this as well :) |
I'll cover everything when I get home tonight 😸 |
I would appreciate if you could rebase this PR. |
…ey are looking for
381208c
to
bce5425
Compare
@arangamani rebased!! |
Cleaning up Node calls to make only one call for the computer item
Thanks for the contributions @stjohnjohnson. I'll work on making a release sometime this weekend. |
No problem, let me know the new version when you do release it. :) |
@arangamani is there a version available yet? |
ping :) |
@stjohnjohnson Oops. I've been slacking. On it now. |
@stjohnjohnson Done, |
Thanks!! |
Currently calls to things like
is_offline?
andis_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.