conda-incubator / conda-store-ui

conda-store-ui is a frontend for conda-store powered by react
https://conda-incubator.github.io/conda-store-ui/
BSD 3-Clause "New" or "Revised" License
13 stars 18 forks source link

Only first page of GET /environment is loaded #312

Closed jonzeper closed 3 months ago

jonzeper commented 11 months ago

Describe the bug

The left nav of the UI lists all the namespaces/environments available to the user. This is populated by a call to the conda-store API's GET /environment. The API supports pagination, but the UI only requests the first page, with a page size of 100.

We have some users that have access to over 100 environments and end up not being able to see all of them.

Expected behavior

Users should see all the environments they have access to, even if it's quite a lot.

How to Reproduce the problem?

  1. Have access to more than 100 environments.
  2. Look at left nav of the UI
  3. Observe that not all of the environments show up

Output

Network tab in chrome inspector showing just the one request made to GET /environment with a full page in the response:

image

Versions and dependencies used.

jupyterlab-conda-store 0.2.7

Anything else?

No response