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

Fix 552 export dbpath #554

Merged
merged 3 commits into from
Jun 9, 2017
Merged

Conversation

lekah
Copy link
Contributor

@lekah lekah commented Jun 2, 2017

With this pull request, we can resolve #552 . The DbPath dependence of the export has been removed either by the QueryBuilder's recursive query for the transitive closure when using SQLAlchemy, or by a small recursive function written explicitly for the Django backend.
As mentioned in 02a4c73 the import-export can be from now on in principle backend-agnostic, given that all the functionality is given. I suggest putting this work as a separate issue for @szoupanos , and - if everything is in order - merging that request since #522 is critically blocking for #258 .

lekah added 2 commits June 2, 2017 07:33
…he export_tree_sqla function, and replaced with QueryBuilder. This means that the import-export can be in principle backend-agnostic. Took the opportunity for some extra comments and cleaning the code a bit
…ango (get_all_parents_dj), that is called by the export_tree_dj function. That means that the DbPath table is no longer used by the export, and all queries are recursive.
@giovannipizzi giovannipizzi merged commit 57df72b into aiidateam:develop Jun 9, 2017
@lekah lekah deleted the fix_552_export_dbpath branch June 9, 2017 17:16
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.

Export relies heavily on DbPath and model specific queries.
3 participants