Skip to content
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

[Search] List of collections is empty #280

Closed
p1d1d1 opened this issue Feb 23, 2023 · 2 comments
Closed

[Search] List of collections is empty #280

p1d1d1 opened this issue Feb 23, 2023 · 2 comments
Milestone

Comments

@p1d1d1
Copy link
Collaborator

p1d1d1 commented Feb 23, 2023

@m-mohr could you please tell me why here https://radiantearth.github.io/stac-browser/#/search/external/data.geo.admin.ch/api/stac/v0.9/ the list of collections is empty?

@m-mohr
Copy link
Collaborator

m-mohr commented Feb 23, 2023

I'll check, it's also not translated...

@m-mohr
Copy link
Collaborator

m-mohr commented Feb 23, 2023

It's because you are paginating the collections. This is problematic as it's not clear upfront how many pages are available.

Let's say an API has 1000 collections and chooses a pagesize of 10, then I'd have to do 100 HTTP requests sequentially to request the full list of collections. To avoid this I've taken the simple route for now to not show the collections but just let users enter the collections freely.

I've created #281 to keep track of the enhancements for paginated collections. You could disable collection pagination for now, 283 collections seem okay for a single page.

I've fixed the missing translation, which means I need new IT and FR translations for "Nothing entered yet" :-)

@m-mohr m-mohr closed this as not planned Won't fix, can't repro, duplicate, stale Feb 23, 2023
@m-mohr m-mohr added this to the 3.0.0-rc.1 milestone Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants