Skip to content

pynamodb: make the patch compatible with PynamoDB 4 #177

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

Merged
merged 1 commit into from
Oct 9, 2019
Merged

pynamodb: make the patch compatible with PynamoDB 4 #177

merged 1 commit into from
Oct 9, 2019

Conversation

yan12125
Copy link
Contributor

@yan12125 yan12125 commented Oct 6, 2019

Issue #, if available:

#171

Description of changes:

PynamoDB 4.0.0 switches from requests to urllib3 [1], so the patch needs
to use another approach for new PynamoDB.

I've tested this change with PynamoDB 3.4.1 and 4.0.0.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-io
Copy link

codecov-io commented Oct 6, 2019

Codecov Report

Merging #177 into master will increase coverage by 0.01%.
The diff coverage is 70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #177      +/-   ##
==========================================
+ Coverage   83.33%   83.34%   +0.01%     
==========================================
  Files          77       77              
  Lines        2910     2918       +8     
==========================================
+ Hits         2425     2432       +7     
- Misses        485      486       +1
Impacted Files Coverage Δ
aws_xray_sdk/ext/pynamodb/patch.py 82.92% <70%> (+1.1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab1327e...1dd185b. Read the comment docs.

PynamoDB 4.0.0 switches from requests to urllib3 [1], so the patch needs
to use another approach for new PynamoDB.

Fixes #171

[1] pynamodb/PynamoDB@71c33e8
@chanchiem
Copy link
Contributor

Thank you very much for the PR! I had re-run Travis CI for the latest build and can see that it's failing because PynamoDB is now version 4. Your PR ensures that the tests pass again.

We really appreciate the contribution!

@chanchiem chanchiem merged commit 372efaa into aws:master Oct 9, 2019
@yan12125 yan12125 deleted the pynamodb4 branch October 10, 2019 02:07
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.

3 participants