Closed agilgur5 closed 8 years ago
Figured out a way to do this effectively. saveSpec can just upload the spec to the server, and, upon success, just open that file on the server (using a hidden form submit). compileSpec will then just do the upload prior to compiling. Alternatively, saveSpec can be implemented entirely in the front end without too much effort.
Really wanna do this entirely on front end... @jimjing how is the RegionMapping produced if the spec has not been compiled yet?
Done. @jimjing still looking to do it front end only
RegionMapping is produced after compilation (since it's literally a mapping from .regions to _decomposed.regions), so this needs to be passed back as well to the front end (proj.RegionMapping?), it's just a dictionary.
So that when you compile, you don't have to download the spec. And so that the endpoint for saving is independent of spec creation.
This was attempted earlier but there was an error with Flask when I did this