juju-gui icon indicating copy to clipboard operation
juju-gui copied to clipboard

Cannot upload local charm to uncommitted model

Open hatched opened this issue 7 years ago • 4 comments

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.

hatched avatar Sep 27 '17 21:09 hatched

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.

frankban avatar Jul 30 '18 12:07 frankban

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.

hatched avatar Jul 30 '18 19:07 hatched

Is this still relevant?

clagom avatar Jul 02 '19 12:07 clagom

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

hatched avatar Jul 02 '19 16:07 hatched