Readthedocs.org: Import UI not showing all organizations

Created on 13 Nov 2017  ·  4Comments  ·  Source: readthedocs/readthedocs.org

I suspect I recently went over 10 organizations in my GitHub account. Now when I see my list of organizations, I'm missing an organization for which I'm an owner (/yougov):

image

I suspect there's either some pagination going on with the organizations or there's a hard-coded limit of 10. In either case, I seem to be unable to filter by that organization.

Bug

Most helpful comment

I just found the problem here and it's because we are using a default LimitOffsetPagination as a global setting. Besides, in the involved endpoints we are overriding the paginated_by settings but those are deprecated and since DRF 3.1 it's needed to use a pagination_class.

So, I opened a PR for that at #3559. Please review it and let me know.

All 4 comments

This sounds like you might be right, this is likely a bug.

I just found the problem here and it's because we are using a default LimitOffsetPagination as a global setting. Besides, in the involved endpoints we are overriding the paginated_by settings but those are deprecated and since DRF 3.1 it's needed to use a pagination_class.

So, I opened a PR for that at #3559. Please review it and let me know.

@humitos I think there should be a button in the UI for going next
Moroever, if you send page_size parameter while getting the projects, you can control the size from the frontend.

Was this page helpful?
0 / 5 - 0 ratings