From e0e467a7a2011c991e487ab848750b59d79adc3f Mon Sep 17 00:00:00 2001 From: Afreen Misbah Date: Wed, 11 Sep 2024 21:33:31 +0530 Subject: [PATCH] mgr/dashboard: Adding group and pool name to service name - Pre-populating the service name field with the format `nvmeof..`. - This can be changed by user but by default this value will be there. - This will help user to quickly fill form and proceed hence improving usability. - cephadm also uses this format as of now this convention so it will make UI aligned with CLI experience - updates unit tests to improve coverage - hides`count` values as that is not needed for 'nvmeof' only hosts and labels required. Fixes https://tracker.ceph.com/issues/68065 Signed-off-by: Afreen Misbah --- .../service-form/service-form.component.html | 2 +- .../service-form.component.spec.ts | 101 +++++++++++++++--- .../service-form/service-form.component.ts | 39 ++++--- .../frontend/src/testing/unit-test-helper.ts | 3 +- 4 files changed, 116 insertions(+), 29 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html index 4e31c133f78..641d25a8dc2 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html @@ -305,7 +305,7 @@ -