cloud-gov / cg-dashboard

Unarchived due to stratos bug in user management: https://github.com/cloudfoundry/stratos/issues/4103
Other
30 stars 18 forks source link

Show all spaces when there's more than one page #1310

Closed mogul closed 5 years ago

mogul commented 6 years ago

Here's an org with lots of spaces (298) in it on the org list page: image

When I expand that org, I count only 28 spaces.

If I click on the org name, I see the same 28 spaces, and now the total matches that number: image

But when I check from the command line, I can verify that there are in fact 298 spaces in that org:

 ~ cf spaces | tail +4 | wc -l
     298

I suspect that the dashboard is ignoring the fact that results from the CF API are paginated and that each page is only 28 entries long, and this will happen any time there are more than 28 spaces in an org.