From: Afreen Misbah Date: Thu, 17 Apr 2025 15:35:39 +0000 (+0530) Subject: mgr/dashboard: Fix pool update on edit X-Git-Tag: v20.3.0~50^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=aeeaf73507c28ef45de8773d0445bdc9eea3419c;p=ceph.git mgr/dashboard: Fix pool update on edit Issue: Pool field was blank on editing namespace form and user needs to type out pool Reason: `image` field is no longer supported in form yet edit function trying to fetch it and failing on that, hence no following updates for pool Fix: Removed stale `image` field Additional changes: - included unit tests for edit to capture such errors - enhanced unit tests to sue ActivatedRouteStub and `router.url` - pre populating pool form on create with first rbd pool in the list Fixes https://tracker.ceph.com/issues/70966 Regression by: https://tracker.ceph.com/issues/69900 Signed-off-by: Afreen Misbah --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html index f030e17dd94e6..bdd3830ffeaeb 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html @@ -19,9 +19,10 @@