From 56bdc46d881dd91c8fca123c6a7214dbd789cf01 Mon Sep 17 00:00:00 2001 From: noramullen1 <42354779+noramullen1@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:32:14 -0700 Subject: [PATCH] Notebooks version history (#3924) --- .../v2.1/notebooks/manage-notebooks.md | 24 +++++++++++++++++++ content/influxdb/v2.1/notebooks/overview.md | 16 ++++++------- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/content/influxdb/v2.1/notebooks/manage-notebooks.md b/content/influxdb/v2.1/notebooks/manage-notebooks.md index b2cb6ec91..36a45fb11 100644 --- a/content/influxdb/v2.1/notebooks/manage-notebooks.md +++ b/content/influxdb/v2.1/notebooks/manage-notebooks.md @@ -12,6 +12,8 @@ menu: Manage your notebooks in the UI: - [View or update a notebook](#view-or-update-notebooks) +- {{% cloud-only %}}[Save a notebook version](#save-a-notebook){{% /cloud-only %}} +- {{% cloud-only %}}[Manage notebook version history](#manage-notebook-version-history){{% /cloud-only %}} - {{% cloud-only %}}[Share a notebook](#share-a-notebook){{% /cloud-only %}} - {{% cloud-only %}}[Unshare a notebook](#unshare-a-notebook){{% /cloud-only %}} - [Delete a notebook](#delete-a-notebook) @@ -28,6 +30,28 @@ Manage your notebooks in the UI: {{% cloud-only %}} +## Save a notebook version + +1. In the navigation menu on the left, click **Notebooks**. + + {{< nav-icon "notebooks" >}} + +2. Click the notebook to open it. +3. Click the **{{< icon "..." >}}** icon, then select **Save to version history**. + +## Manage notebook version history + +1. In the navigation menu on the left, click **Notebooks**. + + {{< nav-icon "notebooks" >}} + +2. Click the notebook to open it. +3. Click the **{{< icon "..." >}}** icon, then select **Version History**. +4. A timestamped list of all saved versions appears in the right panel. + - To preview a previous version, click the version and then click **Run** in the upper left. + - To restore a previous version, click the version and then click **Restore This Version** in the upper right. Alternatively, click the **{{< icon "..." >}}** icon next to the version and select **Restore this version**. + - To clone a previous version to a new notebook, click the **{{< icon "..." >}}** icon next to the version and select **Clone version to new notebook**. + ## Share a notebook 1. In the navigation menu on the left, click **Notebooks**. diff --git a/content/influxdb/v2.1/notebooks/overview.md b/content/influxdb/v2.1/notebooks/overview.md index 39e31a26a..15a566c28 100644 --- a/content/influxdb/v2.1/notebooks/overview.md +++ b/content/influxdb/v2.1/notebooks/overview.md @@ -42,16 +42,16 @@ The following options appear at the top of each notebook. Select {{< caps >}}Run{{< /caps >}} (or press **Control+Enter**) to display results of each cell and write data to the selected bucket. +### Save to version history + +Click the **{{< icon "..." >}}** icon, then select **Save to version history**. + +### Version history (appears after first save) + +Click the **{{< icon "..." >}}** icon, then select **Version history** to open the version history panel. Each saved version of the notebook appears. For details, see [Manage notebook version history](/influxdb/cloud/notebooks/manage-notebooks/#manage-notebook-version-history/). + {{% /cloud-only %}} -### Save Notebook (appears before first save) - -Select {{< caps >}}Save Notebook{{< /caps >}} to save all notebook cells. Once you've saved the notebook, this button disappears and the notebook automatically saves as subsequent changes are made. - -{{% note %}} -Saving the notebook does not save cell results. When you open a saved notebook, click {{< caps >}}**Run**{{< /caps >}} to update cell results. -{{% /note %}} - ### Local or UTC timezone Click the timezone drop-down list to select a timezone to use for the notebook. Select either the local time (default) or UTC.