Skip to content

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

Merged
sphuber merged 1 commit into
developfrom
fix_1398_query_builder_append_tuple
May 30, 2018
Merged

Enable use of tuple in QueryBuilder.append for all ORM classes#1608
sphuber merged 1 commit into
developfrom
fix_1398_query_builder_append_tuple

Conversation

@sphuber
Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants