fission-codes / dashboard

The account dashboard for the Fission platform
https://dashboard.fission.codes
GNU Affero General Public License v3.0
8 stars 0 forks source link

Cannot rename Apps that were created on the CLI #28

Open matheus23 opened 3 years ago

matheus23 commented 3 years ago

Problem

I used the rename feature to rename an app created at the CLI last night, and it was failing. I realized looking at the error that it needed to be uploaded to WNFS. I wonder if it would be a good idea to give a help message in Dashboard to let the user know about that.

Impact

It's at the very least confusing to users.

Solution

It's a little tricky. To rename apps, we destroy the app and re-upload the 'same' app (as a CID) to another subdomain. But we don't know what CID to upload, unless the app's files are in WNFS.

Maybe we add a CID value to the apps.index()? Maybe we add apps.rename()?

matheus23 commented 3 years ago

If #8 were implemented, this issue would be resolved. However, that'd mean we'd need WNFS features in the CLI (which means we'd need a ... haskell webnative implementation?).