-
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
[feature] transition the package_roles method onto the restful API #9770
base: main
Are you sure you want to change the base?
Conversation
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
@@ -99,6 +99,7 @@ def test_gets_project(self, db_request): | |||
"project": project, | |||
"releases": [], | |||
"maintainers": roles, | |||
"package_roles": [], |
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'm not sure if we want to create some representations by using the RoleFactory
. In this case what should be the difference between maintainers
and package_roles
?
These changes aim to address #9700 |
Hello team, I hate harassing people for getting reviews, but, at least, can we have a minimal analyse from your side just to know if this is the right thing to do to fix #9700 and get some visibility on our side. Thanks for your understanding. |
JSON API at https://warehouse.readthedocs.io/api-reference/json.html#get--pypi--project_name--json promises this.
And I don't think it is a good idea to skew the data that goes into Or, make a separate namespace that will expose PyPI admin interface for a package, allowing to assign maintainership roles etc. Right now PyPI evolution stuck between going into central command and control server and providing a more decentralized alternative. When all information including maintainers was contained in the package, the management was decentralized. When people started to need the account and configure access on the server side, the management is centralized. Given the above, I would not just make a separate namespace in the JSON, like "pypi_rbac" or "pypi_config", but a separate endpoint like I mean there is a lot of signals that the admin API is needed https://github.com/pypa/warehouse/issues?q=is%3Aissue+is%3Aopen+token+API |
Thanks for your interesting feedback |
These changes adds the
package_roles
as results of the return of theadmin.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] #9700