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

Fix pagination with pystac-client >= 0.7.4 #578

Merged
merged 12 commits into from
Mar 5, 2024
Merged

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Mar 4, 2024

Pystac-client 0.7.4 removed default limit, which exposed an error with our pagination.

  • Format collections in link so that it remains a comma-separated list -- otherwise we get duplicate collections keys that TypeConversionDict won't catch
  • Have next link method match method of original request, rather than defaulting to GET unless intersects value was specified
  • Add title and type to next link

📚 Documentation preview 📚: https://datacube-explorer--578.org.readthedocs.build/en/578/

Copy link

@SpacemanPaul SpacemanPaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not overly familiar with this part of Explorer so I might be missing something, but the changes look good.

cubedash/_stac.py Outdated Show resolved Hide resolved
@robbibt
Copy link

robbibt commented Mar 5, 2024

Thanks so much @Ariana-B! Can you let me know when this has been rolled out so I can test this out on a range of typical STAC queries?

@Ariana-B Ariana-B linked an issue Mar 5, 2024 that may be closed by this pull request
@Ariana-B Ariana-B merged commit b0151c6 into develop Mar 5, 2024
9 checks passed
@Ariana-B Ariana-B deleted the improve_limit_behaviour branch March 5, 2024 04:34
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

Successfully merging this pull request may close these issues.

Explorer STAC API search issue: only returning max of 20 items
3 participants