-
Notifications
You must be signed in to change notification settings - Fork 487
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
Fixes and improvements #864
base: master
Are you sure you want to change the base?
Conversation
…gin should be downloaded from
for more information, see https://pre-commit.ci
I reuse someone else's comment that lead to updates: Some feedback so we can integrate, or discuss, on this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me, two smaller comments.
not hasattr(self, "_get_plugins") | ||
or self._get_plugins.baseurl != url | ||
): | ||
self._get_plugins = Plugins(url, self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer something like self._plugin_cache
to make it clear that it is data and not a method.
update_center = ( | ||
"https://updates.jenkins.io/update-center.actual.json" | ||
) | ||
jsonp = requests.get(update_center).content.decode("utf-8") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not directly use the json()
method on the response?
Hi,
Please find here some improvements added to this, very good, library.
In order to use it efficiently and correctly, I had to integrate these updates.
I cherry-picked (to give credit to @mrrsm) the commit added in this PR.
I hope this can be merged, so I can switch to the real release, instead of my own repo.