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

Enable use of tuple in QueryBuilder.append for all ORM classes #1608

Merged
merged 1 commit into from
May 30, 2018

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented May 30, 2018

Issue #1398 was fixed in a previous commit to allow adding a tuple of classes to the QueryBuilder
through the append method, but it did not work for all ORM classes e.g. Group.
This commit fixes the problem and enables the new approach for all ORM classes.

…(Group,) which created a list of Nones for the query_type_string. This was resolved by explicitly checking that ormclass is a Node.
@sphuber sphuber requested a review from lekah May 30, 2018 12:28
@codecov-io
Copy link

codecov-io commented May 30, 2018

Codecov Report

Merging #1608 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1608   +/-   ##
========================================
  Coverage    57.14%   57.14%           
========================================
  Files          273      273           
  Lines        33773    33773           
========================================
  Hits         19300    19300           
  Misses       14473    14473
Impacted Files Coverage Δ
aiida/orm/querybuilder.py 74.16% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d5f5d21...df414fd. Read the comment docs.

@sphuber sphuber merged commit b46d6b5 into develop May 30, 2018
@sphuber sphuber deleted the fix_1398_query_builder_append_tuple branch May 30, 2018 13:21
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

3 participants