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 a bug in store method of CifData #1136

Merged
merged 1 commit into from Feb 19, 2018

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Feb 19, 2018

The policy is that one can .store() on a node as many times as one
wants. If the node is already stored it simply shouldn't do anything.
This was not respected in the overriden store method of the CifData
data class, that always tried to set the md5 attribute which would
except when the node was already stored because then attributes are
immutable

@sphuber sphuber added this to the v0.12.0 milestone Feb 19, 2018
@sphuber sphuber added this to To Do in Engine via automation Feb 19, 2018
@sphuber sphuber requested a review from muhrin February 19, 2018 11:07
The policy is that one can .store() on a node as many times as one
wants. If the node is already stored it simply shouldn't do anything.
This was not respected in the overriden store method of the CifData
data class, that always tried to set the md5 attribute which would
except when the node was already stored because then attributes are
immutable
@sphuber sphuber merged commit 6ef4de5 into aiidateam:workflows Feb 19, 2018
Engine automation moved this from To Do to Done Feb 19, 2018
@sphuber sphuber deleted the fix_cif_data_store branch February 19, 2018 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Engine
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants