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 an issue introduced in 2.8.4 that prevented pickled MetaflowObjec… #1392

Merged
merged 3 commits into from
May 5, 2023

Conversation

romain-intel
Copy link
Contributor

…t from being accessed after pickling in a different namespace

The core issue is that we now call the constructor when un-pickling which will recheck the namespace. This broke previous behavior where the constructor was not called and no namespace check was done

…t from being accessed after pickling in a different namespace

The core issue is that we now call the constructor when un-pickling which will recheck the namespace.
This broke previous behavior where the constructor was not called and no namespace check was done
# Note that we set _namespace_check to False because we want the user to
# be able to access this object even after unpickling it. If we set it to
# True, it would check the namespace again at the time of unpickling even
# if the user properly got the object in the first place and pickled it.
return {
"version": "2.8.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

this will still be a problem with older versions that do not understand this new dictionary format. how do we handle that case? One option is to not use this custom dictionary format using a version

@pjoshi30 pjoshi30 merged commit ea998c0 into master May 5, 2023
@pjoshi30 pjoshi30 deleted the fix/namespace-check branch May 5, 2023 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants