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

Fixes and improvements #864

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

mghesh-yseop
Copy link

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.

@mghesh-yseop
Copy link
Author

I reuse someone else's comment that lead to updates:
@lechat @ramonvanalteren @ssbarnea @Achimh3011 anyone still active here?

Some feedback so we can integrate, or discuss, on this ?

Copy link
Member

@Achimh3011 Achimh3011 left a 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)
Copy link
Member

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")
Copy link
Member

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?

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.

4 participants