Comments (2)
Hi @costrouc
This issue is common to multiple features planned in the Conda Store UI / Gator
project. I suggest we handle it early. I'll be happy to participate in the effort of solving it.
First, let's define the expected GET parameters. What do you think is the best ? Some suggestions, ideas and questions :
p
andn
for the page and number of items per page. Maybepage
instead ofp
?- Should the paging start at 0 or 1 ?
n=25
by default- should we allow
n=all
to return all the items - making thep
parameter inactive ?
Also, I listed the API endpoints that need to be compatible with the pagination. Let's check them once done.
-
GET /api/v1/namespace/
:: list namespaces -
GET /api/v1/environment/
:: list environments -
GET /api/v1/build/
:: list builds -
GET /api/v1/build/<build_id>/logs/
:: get build logs -
GET /api/v1/channel/
:: list channels -
GET /api/v1/package/
:: list packages
from conda-store.
Following today's meeting, here are the choices we made :
- the API will look like :
api/v1/package/?search=matplotlib&size=25&page=2
- First page is page=1
- Number of pages will be returned in the result
- Size limited 100
The result should contain : status, data, and page
from conda-store.
Related Issues (20)
- [BUG] - conda-store doesn't report error in logs when conda-lock poetry has a failure to solve HOT 2
- [BUG] - channel priority should be set to strict HOT 1
- [BUG] - conda-store fails on .conda files from JFrog Artifactory HOT 1
- [BUG] - Updating existing environment fails w/ network error from conda_store_server HOT 6
- [BUG] - Environment builds locally, fails on conda-store HOT 5
- META - Update migrated documentation HOT 1
- [ENH] - Loosen requirements on environment name HOT 1
- META - User experience research HOT 1
- [DOC] - Document a release policy
- Reference - Update REST API docs
- [REL] - 2024.3.1 HOT 1
- DOC - Adjust snapshots in docs HOT 1
- Create key personas to tackle
- Rethink interaction of all conda-related tooling in conda-store
- Document support for `variables` in environment spec HOT 1
- [BUG] - `api_get_specification` is broken
- [DOC] Update documentation website theme HOT 2
- Off-label use of `conda_package_streaming` HOT 3
- Run the linter against documentation and tests
- [BUG] - conda-store forces ipykernel to be added in non-python environments HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conda-store.