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

Ensure that get_inputs methods respect link_type argument for SqlAlchemy #1271

Merged

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Mar 12, 2018

Fixes #1270

This fix is already merged into workflows but it needs to be fixed in the v0.11.* release as it is breaking for people using SqlAlchemy

There was an error in the code which led to the link_type
filter not being respected and always all input nodes would
be returned
…et_inputs

The link_type was specified to the _get_db_input_links, however, when
cached links were also included, the link type check was not
performed
The get_inputs method was using the name 'node_type' for an argument
to distinguish node types, whereas get_outputs used 'type', even
though logically they represented the exact same arguments. Rename
the 'type' to 'node_type' for consistency
Copy link
Member

@ltalirz ltalirz left a comment

Choose a reason for hiding this comment

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

great, thanks a lot.

@sphuber sphuber merged commit 41cdb29 into aiidateam:release_v0.11.2 Mar 12, 2018
@sphuber sphuber deleted the fix_1270_get_db_input_links branch March 12, 2018 22: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.

None yet

2 participants