Open krassowski opened 3 months ago
@peytondmurray was this addressed by the environment fetch enhancement you made recently?
No, this has to do with the pagination machinery, not the underlying fetch. Let's keep this open.
Coming back to this, I think we can most easily fix this by simply sorting paginated results by time. I'm sure it's possible to do with the other proposed methods, but this just seems simplest to me. @trallard and @krassowski do you have preferences about this?
This seems like an easy fix, so once I have your input I'll happily fix this.
I think we can most easily fix this by simply sorting paginated results by time
Yes, that's one of the proposed methods :)
Okay, with two votes for sorting by time, I'll do this. Stay tuned!
Feature description
Currently the pagination API uses page-based pagination without sorting by time of creation/modification. This leads to incomplete results when iterated over the pages in dynamic systems with multiple modifications happening at the same time when results are fetched.
For example, if during the process of iterating over the pages of environments (
api/v1/environment
) an additional environment is created, either:this is because the environments are sorted by namespace and name. For a more concrete example see the details below.
Instead, one of pagination implementations which guarantees data completeness should be used across conda-store REST API:
Value and/or benefit
No randomly missing items (e.g. environments) in paginated replies.
Anything else?
No response