-
Notifications
You must be signed in to change notification settings - Fork 344
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
GET api/{version}/users/:userid/deliveryservices returns incorrect results #3754
Comments
I don't think this a bug. The docs for that endpoint say:
which is what it does - although those are filtered by tenancy. Changing that behavior would be a breaking change, although personally I don't have a problem with that. Just that it may need to be restricted to the 1.4 API. And for the record, I do think the behavior of the endpoint as-is are no longer useful, but using this endpoint to return Delivery Services may not be intuitive, since it has |
Honestly, I think the docs simply need to be changed to:
I really don't think this falls under the category of an api breaking change. It's just an overall change of behavior in the system. It used to be that a user's delivery services were determined by the contents of the deliveryservice_tmuser table but now it's determined by the user's tenancy. By using GET /users/:id/deliveryservices the api consumer is just looking for a list of delivery services accessible by the user. how that is determined (deliveryservice_tmuser or tenancy) should not be a concern of the api consumer. |
however, if we're not going to "fix"
|
closing this in favor of #4402 |
With the advent of tenancy, a few things have changed and one of the more notable things is that users now have access to ALL delivery services contained within the scope of their tenancy and not just the delivery services that are explicitly assigned to the user.
However
GET api/{version}/users/:userid/deliveryservices
returns delivery services that are explicitly assigned to the user in the deliveryservice_tmuser table. This table is no longer relevant and should be removed but that's another issue (#2910).GET api/{version}/users/:userid/deliveryservices
should take into account the specified user's tenant and return all delivery services based on that tenant.This bug manifests itself in TP at https://tp.domain.com/#!/users/95/delivery-services. Once the api is fixed, TP will display the correct results.
The text was updated successfully, but these errors were encountered: