You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by GitBox <gi...@apache.org> on 2021/03/17 01:12:57 UTC
[GitHub] [airavata-custos] dinukadesilva opened a new issue #142: Append pagination meta data to tenants get all endpoint
dinukadesilva opened a new issue #142:
URL: https://github.com/apache/airavata-custos/issues/142
Currently, the endpoint has `offset` and `limit` params that supports pagination. But, in order to visualize a pagination UI component, metadata (total rows or pages, etc.) about the pagination is required.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] dinukadesilva commented on issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
dinukadesilva commented on issue #142:
URL: https://github.com/apache/airavata-custos/issues/142#issuecomment-840654847
One other thing. I'm not sure if this was broken from recent changes. Pagination is not working. It returns the whole list.
GET https://custos.scigap.org/apiserver/tenant-management/v1.0.0/tenants?limit=5&offset=0
Here, I'm expecting the response to be the first five tenants but actually, it returns a response of 45 "REQUESTED" tenants.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] dinukadesilva closed issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
dinukadesilva closed issue #142:
URL: https://github.com/apache/airavata-custos/issues/142
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] dinukadesilva commented on issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
dinukadesilva commented on issue #142:
URL: https://github.com/apache/airavata-custos/issues/142#issuecomment-840632729
@isururanawaka
Now, there's the `total_num_of_tenants` property on the response and the pagination can be shown accordingly. But, still, it has the status param set to "REQUESTED" so, cannot list all unless I make three requests for three statuses. Can we get rid of the default status and let the list be sorted according to the importance of statuses by default.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] dinukadesilva closed issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
dinukadesilva closed issue #142:
URL: https://github.com/apache/airavata-custos/issues/142
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] isururanawaka commented on issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
isururanawaka commented on issue #142:
URL: https://github.com/apache/airavata-custos/issues/142#issuecomment-809028555
merge with https://github.com/apache/airavata-custos/pull/146.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] dinukadesilva edited a comment on issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
dinukadesilva edited a comment on issue #142:
URL: https://github.com/apache/airavata-custos/issues/142#issuecomment-840681016
When the offset is zero, the endpoint returns the whole list of entries instead of requested page size.
Eg: https://custos.scigap.org/apiserver/tenant-management/v1.0.0/tenants?limit=10&offset=0 returns 45 entries.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] dinukadesilva commented on issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
dinukadesilva commented on issue #142:
URL: https://github.com/apache/airavata-custos/issues/142#issuecomment-840681016
I just found that offset is not zero indexing and starting from 1 and then it returns the correct page size. Also, the last page seems not properly handled. if the last page is not complete (less than the limit), it returns a complete page of choice that doesn't make sense.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airavata-custos] dinukadesilva commented on issue #142: Append pagination meta data to tenants get all endpoint
Posted by GitBox <gi...@apache.org>.
dinukadesilva commented on issue #142:
URL: https://github.com/apache/airavata-custos/issues/142#issuecomment-849839012
This is fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org