ady624 / webCoRE

webCoRE is a web version of CoRE
GNU General Public License v3.0
251 stars 984 forks source link

Restore from backup file #69

Closed idpaterson closed 6 years ago

idpaterson commented 6 years ago

This feature is in progress and was migrated from the dev branch to a pull request to prevent interruption of other development and bug fixes. Much work is needed still but what is complete has been tested out by a few webCoRE users who needed to restore pistons from backup.

Backup file

Multi-step restore

idpaterson commented 6 years ago

This feature has been in high demand; between all the people who have contacted me to access a preview of the feature around 200 pistons have been restored. Instead of following the plan above I will instead publish it in two phases so that everyone can access the basic restore feature from the live dashboard.

The first phase in the next release of webCore will include support for unlocking the backup file and restoring pistons. At a later time we can revisit support for backing up the entire environment (global variables, categories, etc).

Currently, once the backup file is unlocked all pistons are presented in a sortable list:

screen shot 2018-08-24 at 9 09 48 pm ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ screen shot 2018-08-24 at 9 10 22 pm

The default sort encourages you to restore the "safest" pistons first but you can also sort by name, created date, last modified, or category. Unfortunately we don't have category names in the backup file, just numbers. The screen shows warnings for pistons that:

When a piston is imported it moves to the bottom of the list so that you can always restore the topmost piston. You can view the imported piston from this screen or restore another copy. When the import file is loaded, any pistons with identical name are indicated as imported.

Any Execute Piston actions are automatically updated to the new piston ID if you have already imported the target piston.

idpaterson commented 6 years ago

To be continued in phase 2