From af437b4e7f13e448a93583ee22c625cb1c74aae7 Mon Sep 17 00:00:00 2001 From: Naman Munet Date: Tue, 17 Sep 2024 12:29:37 +0530 Subject: [PATCH] mgr/dashboard: multisite sync policy improvements https://tracker.ceph.com/issues/68097 Changes for this PR includes: 1) Populating the destination zones select option with a set of options to choose from, for flow and pipe so that user can't enter any invalid zone name 2) Provided zone option as 'All Zones (*)' in pipe, if user want to select all zones for source and destination zones 3) We are hiding the UniqueId column on sync policy table as we do not want to show it as this column is introduced just to uniquely identify a row in the table and should not be displayed to users as it is part of the internal logic to work. Signed-off-by: Naman Munet --- ...w-multisite-sync-flow-modal.component.html | 183 +++++++++--------- ...ultisite-sync-flow-modal.component.spec.ts | 63 +++++- ...rgw-multisite-sync-flow-modal.component.ts | 7 +- ...ultisite-sync-pipe-modal.component.spec.ts | 60 +++++- ...rgw-multisite-sync-pipe-modal.component.ts | 32 ++- .../rgw-multisite-sync-policy.component.ts | 1 + .../mgr/dashboard/services/rgw_client.py | 3 +- 7 files changed, 247 insertions(+), 102 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-flow-modal/rgw-multisite-sync-flow-modal.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-flow-modal/rgw-multisite-sync-flow-modal.component.html index 50b0bf321bf..5f13a0aedb1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-flow-modal/rgw-multisite-sync-flow-modal.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-multisite-sync-flow-modal/rgw-multisite-sync-flow-modal.component.html @@ -2,109 +2,84 @@ {{ action | titlecase }} {{ groupType | upperFirst }} Flow - -
-