From deaaf0a1b457f008d229de06ad3cfccd7373c334 Mon Sep 17 00:00:00 2001 From: pford Date: Mon, 19 Aug 2024 02:48:00 -0600 Subject: [PATCH] Add overwrite field to SaveFile, ExportRegion (#97) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add overwrite field to SaveFile * Increment major version in index * Add overwrite field to ExportRegion * add overwrite confirm required flag * update docs --------- Co-authored-by: yuhsuan Co-authored-by: Adrianna PiƄska --- control/export_region.proto | 4 ++++ docs/src/changelog.rst.txt | 3 +++ docs/src/index.rst | 8 ++++---- docs/src/messages.rst.txt | 16 ++++++++++++++++ request/save_file.proto | 4 ++++ 5 files changed, 31 insertions(+), 4 deletions(-) diff --git a/control/export_region.proto b/control/export_region.proto index af9ffc3..d724116 100644 --- a/control/export_region.proto +++ b/control/export_region.proto @@ -21,6 +21,8 @@ message ExportRegion { string directory = 5; // Optional file name of server file string file = 6; + // Optional overwrite existing file + bool overwrite = 7; } // EXPORT_REGION_ACK @@ -32,4 +34,6 @@ message ExportRegionAck { string message = 2; // File contents for client export (one line per string) repeated string contents = 3; + // Request for overwrite confirmation + bool overwrite_confirmation_required = 4; } diff --git a/docs/src/changelog.rst.txt b/docs/src/changelog.rst.txt index 60a3935..bad4fb0 100644 --- a/docs/src/changelog.rst.txt +++ b/docs/src/changelog.rst.txt @@ -222,6 +222,9 @@ Changelog * - ``28.15.0`` - 23/05/24 - Added :carta:ref:`RemoteFileRequest` and :carta:ref:`RemoteFileResponse` messages. + * - ``29.0.0`` + - 26/06/24 + - Added ``overwrite`` to :carta:ref:`SaveFile` and :carta:ref:`ExportRegion` messages. Versioning ---------- diff --git a/docs/src/index.rst b/docs/src/index.rst index ab6fb5e..3c4df6b 100644 --- a/docs/src/index.rst +++ b/docs/src/index.rst @@ -1,11 +1,11 @@ CARTA Interface Control Document ================================ -:Date: 03 July 2024 +:Date: 11 June 2024 :Authors: Angus Comrie, Rob Simmonds and the CARTA development team -:Version: 28.15.0 -:ICD Version Integer: 28 -:CARTA Target: Version 4.0 +:Version: 29.0.0 +:ICD Version Integer: 29 +:CARTA Target: Version 5.0 .. include:: changelog.rst.txt diff --git a/docs/src/messages.rst.txt b/docs/src/messages.rst.txt index 86fea72..1be9a71 100644 --- a/docs/src/messages.rst.txt +++ b/docs/src/messages.rst.txt @@ -657,6 +657,10 @@ Backend responds with :carta:refc:`EXPORT_REGION_ACK` - string - - Optional file name of server file + * - overwrite + - bool + - + - Optional overwrite existing file .. carta:class:: carta-b2f exportregionack @@ -691,6 +695,10 @@ Response for :carta:refc:`EXPORT_REGION` to indicate success and file contents i - string - repeated - File contents for client export (one line per string) + * - overwrite_confirmation_required + - bool + - + - Request for overwrite confirmation .. carta:class:: carta-f2b fileinforequest @@ -2356,6 +2364,10 @@ Source file: `request/save_file.proto