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

Update stac_api_io w/ headers, etc #439

Merged
merged 3 commits into from
Mar 6, 2023
Merged

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Mar 2, 2023

Related Issue(s):

Description:

Currently, if a stac_io is provided to Client.open and friends, the other configuration parameters (e.g. headers) are ignored. This updates Client.from_file to update existing stac_ios with headers, parameters, and request modifiers.

PR Checklist:

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

@gadomski gadomski requested a review from philvarner March 2, 2023 13:41
@gadomski gadomski added this to the 0.6.1 milestone Mar 2, 2023
@gadomski gadomski self-assigned this Mar 2, 2023
@gadomski gadomski force-pushed the issues/430-headers-custom-stacio branch from 01308dd to e602ec6 Compare March 3, 2023 17:09
@gadomski gadomski enabled auto-merge (rebase) March 6, 2023 14:27
@codecov-commenter
Copy link

codecov-commenter commented Mar 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.92 🎉

Comparison is base (4093002) 86.24% compared to head (b3ef95a) 87.17%.

📣 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     #439      +/-   ##
==========================================
+ Coverage   86.24%   87.17%   +0.92%     
==========================================
  Files          11       11              
  Lines         829      834       +5     
==========================================
+ Hits          715      727      +12     
+ Misses        114      107       -7     
Impacted Files Coverage Δ
pystac_client/cli.py 66.40% <100.00%> (+6.08%) ⬆️
pystac_client/client.py 81.96% <100.00%> (+0.14%) ⬆️
pystac_client/stac_api_io.py 91.66% <100.00%> (+0.14%) ⬆️

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@gadomski gadomski merged commit 15a3966 into main Mar 6, 2023
@gadomski gadomski deleted the issues/430-headers-custom-stacio branch March 6, 2023 14:35
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.

headers are ignored when providing a custom StacIO
4 participants