Gencaster / gencaster

A non-linear audio streaming framework for real-time radiophonic experiences and live music.
https://gencaster.org
GNU Affero General Public License v3.0
22 stars 0 forks source link

Graph Import/Export to save stories offline or move between databases #397

Open vin-ni opened 1 year ago

vin-ni commented 1 year ago

Is this something that could already be done with Django @capital-G ?

Would be nice to have this available in the editor at some point to archive or import new graphs.

capital-G commented 1 year ago

This would be possible as Django provides a feature called fixtures which is normally used to populate a database but can be "abused" as a load/save mechanism. The most problematic thing is that we need to store all referenced audio files in this json as well, so for big graphs we will run into problems because i found it hard to store/load any JSON files which exceed 100 mb which will be easy when we are storing audio files in it as well.

. We would also need to introduce a versioning of the graph as a fixture needs to reflect the proper database version.