-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Restore Ansible Galaxy Collection with new APIs #10916
Comments
@chris48s I can take a shot at implementing this. I'll read through https://github.com/badges/shields/blob/master/doc/TUTORIAL.md . Should I be updating https://github.com/badges/shields/blob/master/services/ansible/ansible-collection.service.js ? |
Thanks. Good question. I reckon the routes for the new badges should be
but if you leave the That is similar to what we did with roles |
Starting with #10937 so I can actually build the repo :D |
PR up - #10938 I also am getting local test failures but the endpoint works fine and CI tests pass. Not sure how I'm testing wrong locally! |
📋 Description
A while back, #9631 documented the trials of RedHat making sudden, breaking changes to Ansible Galaxy's APIs. In it, several Ansible-related badges were deprecated because the APIs just disappeared without replacements.
There now appears to be some new values worth making badges for:
https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/index/NAMESPACE/NAME/
has data about the latest version of an Ansible Collection and the total download count of that collection.Would love a Collection version of https://shields.io/badges/ansible-role that could track how many times a collection is downloaded.
Data structure appears to be (using a newly published collection of mine):
So we could take
.download_count
for a badge, and perhaps a second badge extracting.highest_version.version
for a version badge.The text was updated successfully, but these errors were encountered: