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

Push max items check down into paging #492

Merged
merged 1 commit into from
Apr 21, 2023

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Apr 20, 2023

Related Issue(s):

Description:
There's no reason why we can't do our max_items check while paging, so we do. Also removes some duplicated calls to stac_io.get_pages, so we have a single path to fetching pages.

PR Checklist:

  • Code is formatted
  • Tests pass
  • Changes are added to the CHANGELOG

@gadomski gadomski added this to the 0.6.2 milestone Apr 20, 2023
@gadomski gadomski self-assigned this Apr 20, 2023
@gadomski gadomski force-pushed the issues/490-paging-with-max-items branch from 7d72963 to 5e62cef Compare April 20, 2023 16:58
@codecov-commenter
Copy link

codecov-commenter commented Apr 20, 2023

Codecov Report

Patch coverage: 91.66% and project coverage change: +0.03 🎉

Comparison is base (789fbd3) 87.27% compared to head (5e62cef) 87.30%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #492      +/-   ##
==========================================
+ Coverage   87.27%   87.30%   +0.03%     
==========================================
  Files          11       11              
  Lines         833      835       +2     
==========================================
+ Hits          727      729       +2     
  Misses        106      106              
Impacted Files Coverage Δ
pystac_client/item_search.py 93.05% <91.66%> (+0.03%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gadomski gadomski force-pushed the issues/490-paging-with-max-items branch from 5e62cef to f7556b7 Compare April 20, 2023 17:40
@gadomski gadomski marked this pull request as ready for review April 20, 2023 17:41
Required some rewriting of a couple cassettes as the requests changed tightly.
@gadomski gadomski force-pushed the issues/490-paging-with-max-items branch from f7556b7 to 419f82f Compare April 21, 2023 12:35
@gadomski gadomski merged commit 4f2464c into main Apr 21, 2023
16 checks passed
@gadomski gadomski deleted the issues/490-paging-with-max-items branch April 21, 2023 12:49
@gadomski gadomski modified the milestones: 0.6.2, 0.7.0 Apr 27, 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

Successfully merging this pull request may close these issues.

Client.search().pages() using paging does not work correctly
3 participants