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] Unpickling pre-3.28.0 Transformation #5759

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

markotoplak
Copy link
Member

Issue

At around 3.28 we introduced domain caching into Transformation in a way that prevented older pickles to work. Fixes #5758.

Description of changes

This fix recreates the cache after unpickling. Furthermore, the cache (before need_domain, now _target_domain) is never pickled anymore.

Includes
  • Code changes
  • Tests
  • Documentation

@codecov
Copy link

codecov bot commented Jan 4, 2022

Codecov Report

Merging #5759 (1bf6300) into master (300dbba) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 1bf6300 differs from pull request most recent head 246d534. Consider uploading reports for the commit 246d534 to get more accurate results

@@            Coverage Diff             @@
##           master    #5759      +/-   ##
==========================================
- Coverage   86.15%   86.15%   -0.01%     
==========================================
  Files         315      315              
  Lines       66186    66195       +9     
==========================================
+ Hits        57023    57030       +7     
- Misses       9163     9165       +2     

@markotoplak markotoplak changed the title Fix unpickling pre-3.28.0 Transformation [FIX] Unpickling pre-3.28.0 Transformation Jan 4, 2022
At around 3.28 we introduced domain caching into Tranformation in a
way that prevented older pickles to work. This fix recreates the cache
after unpickling. Furthermore, the cache (before "need_domain", now
"_target_domain") is never pickled anymore.
@VesnaT VesnaT merged commit 28c1e00 into biolab:master Jan 4, 2022
markotoplak pushed a commit to markotoplak/orange3 that referenced this pull request Jan 7, 2022
…ickling

[FIX] Unpickling pre-3.28.0 Transformation
@markotoplak markotoplak deleted the fix-transformation-upickling branch February 28, 2022 11:55
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.

'Normalizer' object has no attribute 'need_domain'
2 participants