List projects for user

Bug #1680063 reported by Valery Tschopp
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack SDK
Fix Released
High
Hunt Xu

Bug Description

The Identity API v3 'List projects for user' is not implemented.

https://developer.openstack.org/api-ref/identity/v3/?expanded=list-projects-for-user-detail#list-projects-for-user

Please add it in the identity.v3.Proxy class

Revision history for this message
Brian Curtin (brian.curtin) wrote :

There's a couple of ways we could do this. Since it's a compound resource crossing both users and projects, it could logically go in two places within our Proxy API, either with users or projects.

It might make sense to have this appear like user_id is a query param on /projects and have a projects(user_id=1) method.

However, we might need to do it as something like user_projects(user_id=1) to keep consistent with how we've done other similar behaviors, also depending on how this cross-resource behavior will be to maintain.

I like projects(user_id=1) a lot better as it looks really clean and obvious, and we don't need application developers to be hung up on where things are within the actual REST API if we can make that easier.

Changed in python-openstacksdk:
importance: Undecided → High
status: New → Confirmed
Hunt Xu (huntxu)
Changed in python-openstacksdk:
assignee: nobody → Hunt Xu (huntxu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstacksdk (master)

Fix proposed to branch: master
Review: https://review.openstack.org/539460

Changed in python-openstacksdk:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstacksdk (master)

Reviewed: https://review.openstack.org/539460
Committed: https://git.openstack.org/cgit/openstack/python-openstacksdk/commit/?id=a23f7423cf2fb103ad6933a69160443c82ef71d1
Submitter: Zuul
Branch: master

commit a23f7423cf2fb103ad6933a69160443c82ef71d1
Author: Hunt Xu <email address hidden>
Date: Wed Jan 31 16:39:44 2018 +0800

    Implement list projects for user

    Change-Id: I25d542eb24fb06517904090af21b7606d8e8a7fa
    Closes-Bug: #1680063

Changed in python-openstacksdk:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-openstacksdk 0.12.0

This issue was fixed in the openstack/python-openstacksdk 0.12.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.