juju / juju-gui

Juju-GUI is a web-based GUI for Juju <https://jujucharms.com/>.
Other
182 stars 85 forks source link

Cannot upload local charm to uncommitted model #3240

Open hatched opened 7 years ago

hatched commented 7 years ago

When attempting to add a local charm to a new model the request fails because there is no model yet to upload to. But you also cannot create a model without a charm first added to the canvas.

As a fix we should allow the local charm to be added to the canvas then uploaded on deploy.

frankban commented 6 years ago

But that way wouldn't we store the whole charm contents in memory in the browser? I think maybe we should drop the user into the deployment flow with a notification that local charms can be only deployed after creating a model.

hatched commented 6 years ago

We may be able to extract only the config and icon files out of the zip so that we can use them prior to deploying so we wouldn't need to store anymore than those in memory.

clagom commented 5 years ago

Is this still relevant?

hatched commented 5 years ago

Yes, it'll be an issue as long as we have the 'modeling' feature.