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

Don't unquote in url_with_parameters #530

Merged
merged 2 commits into from
Jun 7, 2023

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Jun 7, 2023

Related Issue(s):

Description:

I think #522 is invalid, I was not able to reproduce. I added a test case to prove it. While checking, I discovered that url_with_parameters was unquoting the url, which I think is incorrect. Fixed that, and fixed the tests.

PR Checklist:

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

@gadomski gadomski added this to the 0.7.0 milestone Jun 7, 2023
@gadomski gadomski requested a review from jsignell June 7, 2023 14:28
@gadomski gadomski self-assigned this Jun 7, 2023
@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.02 ⚠️

Comparison is base (a759644) 88.34% compared to head (c0f9fa7) 88.33%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #530      +/-   ##
==========================================
- Coverage   88.34%   88.33%   -0.02%     
==========================================
  Files          13       13              
  Lines         987      986       -1     
==========================================
- Hits          872      871       -1     
  Misses        115      115              
Impacted Files Coverage Δ
pystac_client/item_search.py 94.18% <100.00%> (-0.02%) ⬇️

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

Copy link
Member

@jsignell jsignell left a comment

Choose a reason for hiding this comment

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

Looks great! I tried out the test output URL on earthsearch and it worked!

https://earth-search.aws.element84.com/v1/search?limit=100&query=%7B%22eo%3Acloud_cover%22%3A%7B%22lt%22%3A42%7D%7D'

@gadomski gadomski merged commit c5ca8b1 into main Jun 7, 2023
17 checks passed
@gadomski gadomski deleted the issues/522-url-with-parameters-fix branch June 7, 2023 15:58
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.

url_with_parameters omiting query filter values
3 participants