From: Afreen Date: Thu, 4 Apr 2024 07:41:11 +0000 (+0530) Subject: mgr/dashboard: Move features to advanced section X-Git-Tag: v20.0.0~2145^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F56694%2Fhead;p=ceph.git mgr/dashboard: Move features to advanced section Fixes https://tracker.ceph.com/issues/65207 - Moves "features" section in rbd image create form to "Advanced" section. - makes rbd configuration section to be expanded by default rather than being collapsed as it has only single section. This will improve user experience as it will not require two clicks. - updates e2e test Signed-off-by: Afreen --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts index 7cca96aa8f46..af46355ff1c5 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/pools/pools.po.ts @@ -44,7 +44,6 @@ export class PoolPageHelper extends PageHelper { edit_pool_configuration(name: string, bpsLimit: string) { this.navigateEdit(name); - cy.get('.collapsible').click(); cy.get('cd-rbd-configuration-form') .get('input[name=rbd_qos_bps_limit]') .clear() @@ -53,7 +52,6 @@ export class PoolPageHelper extends PageHelper { this.navigateEdit(name); - cy.get('.collapsible').click(); cy.get('cd-rbd-configuration-form') .get('input[name=rbd_qos_bps_limit]') .should('have.value', bpsLimit); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.ts index 7b5fe992f283..27408909b12e 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-configuration-form/rbd-configuration-form.component.ts @@ -69,7 +69,7 @@ export class RbdConfigurationFormComponent implements OnInit { this.rbdConfigurationService .getWritableSections() - .forEach((section) => (this.sectionVisibility[section.class] = false)); + .forEach((section) => (this.sectionVisibility[section.class] = true)); } getDirtyValues(includeLocalValues = false, localFieldType?: RbdConfigurationSourceField) { diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html index 690eb9c1282c..af6cd3963651 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html @@ -219,29 +219,6 @@ - -
- -
-
- - - - -
-
-
-
@@ -300,9 +277,31 @@ + +
+ +
+
+ + + + +
+
+
+

Striping

-