-
Notifications
You must be signed in to change notification settings - Fork 964
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
REST API is missing package_roles info from XML-RPC #9700
Comments
The There is no equivalent API for |
So, if no equivalent exist, I think that we can close this issue. Thank you for your reply. |
We can leave this open to track creation of an equivalent. |
You mean the creation of an equivalent field ( |
These changes adds the `package_roles` as results of the return of the `admin.views.project` restful API. The `package_roles` method was available into the xmlrpc, unfortunately these informations are missing into the restful API [1]. These changes adds the creation of an equivalent into the restful API. [1] pypi#9700
Should this be renamed to "REST API is missing package_roles info from XML-RPC"? |
Do you speak about this github issue or do you speak about the github pull request #9770 ? |
About this GitHub issue. It is quite specific about what info is missing. |
Done |
Now it needs to be linked to some master issue about adding a package Admin API to PyPI, but I can't find any. The closest one is #284 and it is not specific enough to be actionable. In particular it does not separate Metadata API (stuff that comes shipped with code) and Admin API (outside stuff that is needed to manage shipping through PyPI). |
Describe the bug
On openstack, we noticed missing data during our transition from the xmlrpc to the restful API.
Indeed, few months ago, we started transitioning github.com/openstack/releases on the restful API.
Previously we relied on the
package_role
method to retrieve roles. Role is either Maintainer or Owner. The original intent here was to check whether an existing package registration allowed the account used by our automation to upload releases.Example:
Unfortunately the restful API doesn't seems to return similar information. A
maintainer
field is returned but this one is emptySo, we don't know how to finalize our transition without these data.
Expected behavior
Does the fact that the
data.json()['info']['maintainer']
is empty is normal?Do we should expect an empty result here?
Is it possible to bind something else (another JSON key) to retrieve this information?
To Reproduce
By using xmlrpc:
By using restful
My Platform
Additional context
To see the full context of our transition and the full context of the experienced problem, then, please have a look to https://review.opendev.org/c/openstack/releases/+/785008
Thanks for your help.
The text was updated successfully, but these errors were encountered: