From f488a5319c1b59955566843d32ccd0a22fe7b80c Mon Sep 17 00:00:00 2001 From: ^ Date: Thu, 2 May 2024 16:55:50 +0100 Subject: [PATCH] fix: stuff --- docs/files.md | 2 +- docs/restore.md | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/files.md b/docs/files.md index 1197dfc..738a2fb 100644 --- a/docs/files.md +++ b/docs/files.md @@ -8,7 +8,7 @@ If you would like to support other file types, do [get in touch](https://datacon ## Excel Uploads -Data can be uploaded in regular (tabular) or dynamic (complex) format. For details, see the [excel](/excel). +Data can be uploaded in regular (tabular) or dynamic (complex) format. For details, see the [excel](/excel) page. ## CSV Uploads diff --git a/docs/restore.md b/docs/restore.md index f162fb1..24e587b 100644 --- a/docs/restore.md +++ b/docs/restore.md @@ -13,6 +13,8 @@ Simply open the submit to be reverted (via HISTORY or the table INFO/VERSIONS sc ![](/img/restore.png) +This approach means that the audit history remains intact - there is simply a new entry, which reverts all the previous entries. + ## Caveats Note that there are some caveats to this feature: @@ -27,6 +29,6 @@ Note that there are some caveats to this feature: ## Technical Information -The restore works by undoing all the changes listed in the [MPE_AUDIT](/tables/mpe_audit/) table. The keys from this table (since and including the version to be restored) are left joined to the base table (to get current values) to create a staging dataset, and then the changes applied in reverse chronological order using [this macro](https://core.sasjs.io/mp__stripdiffs_8sas.html). +The restore works by undoing all the changes listed in the [MPE_AUDIT](/tables/mpe_audit/) table. The keys from this table (since and including the version to be restored) are left joined to the base table (to get current values) to create a staging dataset, and then the changes applied in reverse chronological order using [this macro](https://core.sasjs.io/mp__stripdiffs_8sas.html). This staging dataset is then submitted for approval, providing a final sense check before the new / reverted state is applied. Source code for the restore process is available [here](https://git.datacontroller.io/dc/dc/src/branch/main/sas/sasjs/services/editors/restore.sas). \ No newline at end of file