PyWorkflowApp / visual-programming

A Python Visual Programming Workspace for Data Science
MIT License
33 stars 12 forks source link

Download of Workflow; update Node/Edge functionality #16

Closed reelmatt closed 4 years ago

reelmatt commented 4 years ago

A few changes in this PR:

  1. Better file-handling/storage for the workflow file. Save route now downloads the JSON file to local machine. (Original write_json() method is still present, but unused. Now uses the Django file storage API). Not sure if route should do both—write to /tmp and download, or just download. This is easily modified.
  2. Parameterizes Node creation. Accomplished through a GET request at the moment (instead of POST). Adds error-checking to ensure unique Nodes.
  3. Add an edge between node_from and node_to, given both nodes exist in the graph. Route path can probably be simplified from current /node/edge/<from>/<to> and should be moved to a POST request instead of GET.
reelmatt commented 4 years ago

See #17 for further changes.