]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix error when typing existing paths in the Ganesha form 37064/head
authorKiefer Chang <kiefer.chang@suse.com>
Wed, 9 Sep 2020 08:20:32 +0000 (16:20 +0800)
committerKiefer Chang <kiefer.chang@suse.com>
Tue, 6 Oct 2020 03:25:55 +0000 (11:25 +0800)
commitee14ef7c6095d0572e90b29580f2d8d6982dcbda
treedd8fb7efedce741d0ba2a1275a605f83de897394
parent42227097c131bc204efb2eafd5a409721329a7ce
mgr/dashboard: fix error when typing existing paths in the Ganesha form

- The `CephFS.ls_dir()` implementation in the backend had changed, the code in the
  UI endpoint `/ui-api/nfs-ganesha/lsdir` needs to adapt.
- Add fs_name as resource_id in `/ui-api/nfs-ganesha/lsdir/<fs_name>` to distinguish FS.
- Add more checks and unit tests.

Fixes: https://tracker.ceph.com/issues/47372
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
qa/tasks/mgr/dashboard/test_ganesha.py
src/pybind/mgr/dashboard/controllers/nfsganesha.py
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/nfs.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/nfs.service.ts
src/pybind/mgr/dashboard/tests/test_ganesha.py