VizierDB / web-api-async

Vizier Asynchronous Web API
Apache License 2.0
2 stars 2 forks source link

Safe import export #111

Closed okennedy closed 3 years ago

okennedy commented 4 years ago

This PR cleans up import/export functionality, which is presently implemented by tarring up the vistrails project directory.

Specifically

With this PR, export now explicitly goes through the VistrailsRepository API to serialize the project, all branches, workflows, modules, and uploaded files. Where available, exporting makes use of vizier.api.serialize to accomplish this. Importing, on the other hand makes limited use of vizier.api.deserialize, since it needs to create "native" representations of each of the reconstituted objects.

Tasks:

okennedy commented 4 years ago

Part of my development process is the use of diff (Meld) to compare the pre-post images of the exported repository. As of right now, the differences are minimal.