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

Get rid of vestigial leading underscores for non-storable inputs #1105

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Feb 3, 2018

Fixes #1101

The old convention to mark Process inputs as non database storable
was to name them with a leading underscore. Now there is a proper
mixin WithNonDb that is mixed into the InputPort and PortNamespace
classes, which adds the attribute non_db, which can be used to
mark a port as storable or non storable. We remove the underscores
from the predefined Process and Workchain inputs

  • _options
  • _label
  • _description
  • _store_provenance

Workchain implementations and JobProcess submissions by users will
have to be updated to remove these leading underscored from the
input dictionaries as well

@sphuber sphuber added this to the v0.12.0 milestone Feb 3, 2018
@sphuber sphuber requested a review from muhrin February 3, 2018 22:15
The old convention to mark Process inputs as non database storable
was to name them with a leading underscore. Now there is a proper
mixin WithNonDb that is mixed into the InputPort and PortNamespace
classes, which adds the attribute non_db, which can be used to
mark a port as storable or non storable. We remove the underscores
from the predefined Process and Workchain inputs

	* _options
	* _label
	* _description
	* _store_provenance

Workchain implementations and JobProcess submissions by users will
have to be updated to remove these leading underscored from the
input dictionaries as well
@sphuber sphuber force-pushed the fix_1101_nuke_leading_underscore_convention branch from 1a00641 to bf09099 Compare February 5, 2018 22:17
@sphuber sphuber changed the title [BLOCKED]: Get rid of vestigial leading underscores for non-storable inputs Get rid of vestigial leading underscores for non-storable inputs Feb 5, 2018
@muhrin muhrin merged commit 54a7f78 into aiidateam:workflows Feb 12, 2018
@sphuber sphuber deleted the fix_1101_nuke_leading_underscore_convention branch February 12, 2018 21:22
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.

2 participants