Skip to content

Remove the FrozenDict data sub class#2532

Merged
sphuber merged 1 commit into
aiidateam:provenance_redesignfrom
sphuber:fix_2526_remove_frozen_dict_data_class
Feb 26, 2019
Merged

Remove the FrozenDict data sub class#2532
sphuber merged 1 commit into
aiidateam:provenance_redesignfrom
sphuber:fix_2526_remove_frozen_dict_data_class

Conversation

@sphuber
Copy link
Copy Markdown
Contributor

@sphuber sphuber commented Feb 25, 2019

Fixes #2526

The FrozenDict class was added to allow ProcessNode instances to be
passed to Process classes. However, its implementation is flawed as it
uses the pks of the nodes it wraps, which are not persistent across
databases and as such provenance will be lost when it is imported. We
remove the source code here. In a future commit, it will have to be
decided how to migrate existing data.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.05%) to 69.749% when pulling c43e4fee8175443494b0d3d4ed81e83b88df0fcb on sphuber:fix_2526_remove_frozen_dict_data_class into 562935c on aiidateam:provenance_redesign.

@coveralls
Copy link
Copy Markdown

coveralls commented Feb 25, 2019

Coverage Status

Coverage decreased (-0.02%) to 69.784% when pulling 97c5b30 on sphuber:fix_2526_remove_frozen_dict_data_class into a3e36e5 on aiidateam:provenance_redesign.

The `FrozenDict` class was added to allow `ProcessNode` instances to be
passed to `Process` classes. However, its implementation is flawed as it
uses the pks of the nodes it wraps, which are not persistent across
databases and as such provenance will be lost when it is imported. We
remove the source code here. In a future commit, it will have to be
decided how to migrate existing data.
@sphuber sphuber force-pushed the fix_2526_remove_frozen_dict_data_class branch from c43e4fe to 97c5b30 Compare February 26, 2019 06:11
@sphuber sphuber merged commit 6315c6e into aiidateam:provenance_redesign Feb 26, 2019
@sphuber sphuber deleted the fix_2526_remove_frozen_dict_data_class branch February 26, 2019 06:53
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