desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Missing organizations in the UI

Open ntiss opened this issue 7 years ago • 8 comments

I can only see the first 12 orgs on which I'm authorized whereas I'm authorized on 25.

There is a bug in the API since https://next-api.stoplight.io/orgs?page=1&per_page=25 only responds with 12 orgs instead of 25.

Cause : the per_page arg is curiously handled :

  • per_page=5 : 4 orgs in the response
  • per_page=25 : 12 orgs in the response
  • per_page=40 : 23 orgs in the response
  • per_page=4 : 23 orgs in the response

Solution (in my case) : remove "page=1&per_page=25" from the url because there is no paging system.

ntiss avatar Oct 22 '18 16:10 ntiss

Hey @ntiss - I'm having a bit of trouble replicating this right now. You are seeing this on the hosted version of Stoplight, right? Just wanted to make sure it wasn't on premise.

tbarn avatar Oct 29 '18 16:10 tbarn

When I do that request, I see:

screen shot 2018-10-29 at 11 01 48 am

tbarn avatar Oct 29 '18 16:10 tbarn

Hi Taylor, Yes I'm on the hosted version. Both with the desktop app and via a browser.

ntiss avatar Oct 29 '18 17:10 ntiss

@ntiss Okay, and just to make sure this is when you do the request to https://next-api.stoplight.io/orgs?page=1&per_page=25? Not just in the UI like the issue title says.

tbarn avatar Oct 29 '18 17:10 tbarn

Fixed, successfully tested in 4.6.5. Many thanks.

ntiss avatar Nov 18 '18 15:11 ntiss

Hi everyone,

I reopen the case. This issue is back with your latest release 4.9.0. I can see only 10 orgs instead of 25. BR.

ntiss avatar Apr 03 '19 07:04 ntiss

@ntiss is it only happening for orgs, or does it happen for people again too?

tbarn avatar Apr 03 '19 13:04 tbarn

Hi @tbarn I confirm, it's only for the orgs. Everything is ok for the users. This time, it's a bug only in the UI because the API responses contains 25 orgs

ntiss avatar Apr 03 '19 14:04 ntiss