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

Remove unused QB methods/functions #3526

Merged
merged 6 commits into from
Nov 11, 2019

Conversation

CasperWA
Copy link
Contributor

@CasperWA CasperWA commented Nov 8, 2019

Closes #3518.

Also deals with the method mentioned in #3522.

Feel free to find and remove more QueryBuilder code that is completely unused in the code base of AiiDA, if you believe it should not be updated and used.
(Please post here if you want/need writing permissions to my fork).

@CasperWA CasperWA requested review from ltalirz and lekah November 8, 2019 10:49
@ltalirz
Copy link
Member

ltalirz commented Nov 8, 2019

@lekah What about inputs, outputs, children, parents?

@lekah
Copy link
Contributor

lekah commented Nov 11, 2019

@lekah What about inputs, outputs, children, parents?

I will create a new issue for them. They contain(ed) functionality that was often discussed as important, namely to do graph traversals using the querybuilder, as in node.qb.input().outputs() -> get all outputs of all inputs of a certain node. It looks like some of this functionality was removed, but not the functions within the QueryBuilder...

lekah
lekah previously approved these changes Nov 11, 2019
@lekah
Copy link
Contributor

lekah commented Nov 11, 2019

Ok for me as soon as @ltalirz approves

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.

Good to remove - one request from my side in order to prevent confusion in the future

aiida/orm/querybuilder.py Show resolved Hide resolved
aiida/orm/querybuilder.py Outdated Show resolved Hide resolved
aiida/orm/querybuilder.py Outdated Show resolved Hide resolved
@CasperWA CasperWA requested review from lekah and ltalirz November 11, 2019 13:12
@CasperWA CasperWA requested a review from ltalirz November 11, 2019 15:55
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.

thanks @CasperWA !

@ltalirz ltalirz merged commit 267d210 into aiidateam:develop Nov 11, 2019
@CasperWA CasperWA deleted the fix_3518_remove_unused_qb_code branch November 11, 2019 17:34
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.

Possibly unused QueryBuilder code
3 participants