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

fix: Update data_type retrieval to not modify underlying dict #558

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

consoull
Copy link
Contributor

What change does this PR introduce and why?

Updates data_type retrieval in _deserialize_dataobject to use get instead of pop, so that the underlying dictionary is unmodified. This fixes a bug where data_type was removed from all dicts during deserialization.

Please check if the PR fulfills these requirements

  • Include reference to internal ticket and/or GitHub issue "Fixes #NNNN" (if applicable)
  • Relevant tests for the changes have been added
  • Relevant docs have been added / updated

Updates `data_type` retrieval in `_deserialize_dataobject` to use `get`
instead of `pop`, so that the underlying dictionary is
unmodified. This fixes a bug where `data_type` was removed from all
dicts during deserialization.
@consoull consoull requested a review from a team as a code owner March 26, 2024 13:32
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.81%. Comparing base (2b3ef91) to head (f167814).

Additional details and impacted files
@@            Coverage Diff             @@
##            trunk     #558      +/-   ##
==========================================
+ Coverage   94.79%   94.81%   +0.01%     
==========================================
  Files          83       83              
  Lines        5168     5168              
  Branches      736      736              
==========================================
+ Hits         4899     4900       +1     
  Misses        194      194              
+ Partials       75       74       -1     
Flag Coverage Δ
integration 75.85% <100.00%> (+0.01%) ⬆️

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.

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.

1 participant