From b9aeca58355fdfd93d255fbbb05b8eca600d2258 Mon Sep 17 00:00:00 2001 From: cstns Date: Fri, 27 Sep 2024 16:40:39 +0300 Subject: [PATCH] Update snapshot nomenclature --- docs/migration/introduction.md | 2 +- docs/migration/node-red-tools.md | 2 +- docs/user/snapshots.md | 4 ++-- docs/user/team/README.md | 2 +- forge/services/snapshots.js | 2 +- frontend/src/pages/device/Snapshots/index.vue | 6 +++--- frontend/src/pages/instance/Snapshots/index.vue | 4 ++-- .../e2e/frontend/cypress/tests-ee/devices/snapshots.spec.js | 6 +++--- test/e2e/frontend/cypress/tests/instances/snapshots.spec.js | 4 ++-- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/migration/introduction.md b/docs/migration/introduction.md index 197a70cdc4..38b1211515 100644 --- a/docs/migration/introduction.md +++ b/docs/migration/introduction.md @@ -37,7 +37,7 @@ Instance > Settings > Environment tabs. ## Starting the snapshot -Under the snapshots tab, click 'Deploy Snapshot' in the kebab menu. The migrated flows +Under the snapshots tab, click 'Restore Snapshot' in the kebab menu. The migrated flows will now be started with the modules installed. ## Limitations diff --git a/docs/migration/node-red-tools.md b/docs/migration/node-red-tools.md index e542a61507..e2f85a9467 100644 --- a/docs/migration/node-red-tools.md +++ b/docs/migration/node-red-tools.md @@ -82,7 +82,7 @@ You can then create a new snapshot using the flows you have running locally. 4. Click 'Create Snapshot' At this point, a new snapshot will be created in FlowFuse. You can then switch -to the FlowFuse platform and from the Snapshots menu either select the 'Deploy Snapshot' +to the FlowFuse platform and from the Snapshots menu either select the 'Restore Snapshot' option to deploy that snapshot, or set it as the Device Target to deploy it to your devices. diff --git a/docs/user/snapshots.md b/docs/user/snapshots.md index d0cdc103ad..550d992d40 100644 --- a/docs/user/snapshots.md +++ b/docs/user/snapshots.md @@ -95,7 +95,7 @@ next time it checks in. To set the **Device Target** of an application owned device: 1. Go to the devices's page and select the **Snapshots** tab. -2. In the list of snapshots available, a "Deploy Snapshot" button will be displayed +2. In the list of snapshots available, a "Restore Snapshot" button will be displayed for each snapshot as you hover over it. 3. You will be asked to confirm - click the **Confirm** button to set it as the target snapshot. @@ -140,4 +140,4 @@ and selecting "View Snapshot". _Screenshot to show the available "Actions" for a given Snapshot_ ![Screenshot to an example flow preview for a Snapshot in FlowFuse](./images/snapshots-preview.png) -_Screenshot to an example flow preview for a Snapshot in FlowFuse_ \ No newline at end of file +_Screenshot to an example flow preview for a Snapshot in FlowFuse_ diff --git a/docs/user/team/README.md b/docs/user/team/README.md index 70377cd855..0ef3f782f1 100644 --- a/docs/user/team/README.md +++ b/docs/user/team/README.md @@ -55,7 +55,7 @@ table summaries what actions are available to the different roles. | • Modify Flows | ✓ | ✓ | - | - | | **Snapshots** | | | | | | • Create Snapshot | ✓ | ✓ | - | - | -| • Deploy Snapshot | ✓ | ✓ | - | - | +| • Restore Snapshot | ✓ | ✓ | - | - | | • Set as Device Target | ✓ | ✓ | - | - | | • View Snapshots | ✓ | ✓ | ✓ | - | | • Download Snapshot | ✓ | ✓ | - | - | diff --git a/forge/services/snapshots.js b/forge/services/snapshots.js index 3649a9bba5..6bb498d6d5 100644 --- a/forge/services/snapshots.js +++ b/forge/services/snapshots.js @@ -36,7 +36,7 @@ async function setSnapShotAsTarget (app, snapshot, instance, user) { } /** - * Generate a name for a deploy snapshot + * Generate a name for a restore snapshot * Optionally using the name of the source snapshot, stripping out the deploy timing info * @param {*} sourceSnapshot * @returns string diff --git a/frontend/src/pages/device/Snapshots/index.vue b/frontend/src/pages/device/Snapshots/index.vue index c4e81f32b5..00d572750f 100644 --- a/frontend/src/pages/device/Snapshots/index.vue +++ b/frontend/src/pages/device/Snapshots/index.vue @@ -23,7 +23,7 @@ Create Snapshot