Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unmarshalling dynamo data officially. #374

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Unmarshalling dynamo data officially. #374

merged 2 commits into from
Jan 8, 2025

Conversation

angelosantos4
Copy link
Contributor

Using boto3 deserializer method to unmarshall the dynamo records rather than our own version. In order to use the best standards for type standardization.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.91%. Comparing base (4e9b5da) to head (c15c3db).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #374      +/-   ##
==========================================
- Coverage   97.93%   97.91%   -0.02%     
==========================================
  Files         147      147              
  Lines        5325     5286      -39     
==========================================
- Hits         5215     5176      -39     
  Misses        110      110              
Flag Coverage Δ
3.10-macos-latest 97.88% <100.00%> (-0.04%) ⬇️
3.10-ubuntu-latest 97.88% <100.00%> (-0.02%) ⬇️
3.10-windows-latest 97.88% <100.00%> (+0.02%) ⬆️
3.11-macos-latest 97.88% <100.00%> (-0.04%) ⬇️
3.11-ubuntu-latest 97.88% <100.00%> (-0.02%) ⬇️
3.11-windows-latest 97.88% <100.00%> (+0.02%) ⬆️
3.12-macos-latest 97.90% <100.00%> (-0.02%) ⬇️
3.12-ubuntu-latest 97.88% <100.00%> (-0.02%) ⬇️
3.12-windows-latest 97.88% <100.00%> (+0.02%) ⬆️
3.13-macos-latest ?
3.13-ubuntu-latest 97.88% <100.00%> (-0.02%) ⬇️
3.13-windows-latest 97.88% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

({"BOOL": "False"}, False),
({"SS": ["StringA", "StringB"]}, ["StringA", "StringB"]),
({"NS": ["100", "200", "1.0"]}, [100, 200, 1.0]),
({"BS": ["abcdef", "xyz123"]}, [b"abcdef", b"xyz123"]),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Notably in these tests, the decoder recognizes *S as actual sets rather than lists. For the most part this will be fine given that dynamo likely implements these as sets internally.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also the Booleans effectively return as python booleans rather than strings.

Copy link
Member

@zprobst zprobst left a comment

Choose a reason for hiding this comment

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

Looks good.

@zprobst zprobst merged commit bb5f791 into main Jan 8, 2025
16 checks passed
@zprobst zprobst deleted the dynamo-fix branch January 8, 2025 12:59
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants