-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing environment pagination #356
Conversation
Thanks for your contribution @PhilipNeffOnGithub, it is much appreciated. To move along the PR review would it be possible for you to add screenshots of the Before and After (with pagination limits vs without - this PR)? |
@gabalafou can you please have a look at this PR and the corresponding issue? cc/ @smeragoel for visibility |
Sorry it's taken me so long to get to this. The code suggests that pagination should work. I would prefer to see if it's fixable before removing the functionality. Or perhaps we could consider other stop-gap solutions, such as a toggle or user preference to load all rather than paginate? |
@nkaretnikov can you help me figure out how to generate 100s of conda store environments in my local dev environment? |
@gabalafou Sure! Take a look at these new tests being added: conda-incubator/conda-store#760. These show how to log in and create an environment. See namespace = utils.API.gen_random_namespace()
api = utils.API(base_url=base_url, token=token)
api.create_namespace(namespace)
response = api.create_environment(namespace, specification_path) Let me know if you have more questions. |
Hello again! Any update on this review? |
Sorry for the radio silence and thanks for the ping. |
Apologies for the delay. It took me some time to set up a local dev server with 100+ environments. When I test this PR locally, it doesn't work. I'm wondering if the server was updated at some point to automatically enforce pagination because when I run the server locally with this PR applied, I only get the first 100 environments in the UI. And when I inspect the API request and response, it looks like so:
Note that if I remove the Is this PR meant to be combined with a backend PR to remove API pagination? |
Fixes #312
Fixes issue 312, where only the first page of environments get loaded
Description
It seems that the pagination of environments does not happen, however the environments are still loaded as if they are, with only 100 per page. So, if a user has over 100 environments, the UI will only show the first 100 (in alphabetical order).
This pull request:
Changes were tested locally.