]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: NFS 'create export' form: fixes 43725/head
authorAlfonso Martínez <almartin@redhat.com>
Thu, 4 Nov 2021 13:56:37 +0000 (14:56 +0100)
committerAlfonso Martínez <almartin@redhat.com>
Thu, 4 Nov 2021 13:56:37 +0000 (14:56 +0100)
commitd817a24e345516229bc637e2c675d12e6bfcc456
tree2c661220a7511650b6a1a84fa68712cc687f8eab
parenta6aeded5141ec3a959a86aa4002ccf5ac8d0a523
mgr/dashboard: NFS 'create export' form: fixes

* Do not allow a pseudo that is already in use by another export.
* Create mode form: prefill dropdown selectors if options > 0.
* Edit mode form: do not reset the field values that depend on other values that are being edited (unlike Create mode).
* Fix broken link: cluster service.
* Fix error message style for non-existent cephfs path.
* nfs-service.ts: lsDir: thow error if volume is not provided.
* File renaming: nfsganesha.py => nfs.py; test_ganesha.py => test_nfs.py

Fixes: https://tracker.ceph.com/issues/53083
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
12 files changed:
src/pybind/mgr/dashboard/controllers/nfs.py [new file with mode: 0644]
src/pybind/mgr/dashboard/controllers/nfsganesha.py [deleted file]
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/nfs/nfs-form/nfs-form.component.spec.ts
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/plugins/feature_toggles.py
src/pybind/mgr/dashboard/tests/test_auth.py
src/pybind/mgr/dashboard/tests/test_ganesha.py [deleted file]
src/pybind/mgr/dashboard/tests/test_nfs.py [new file with mode: 0644]
src/pybind/mgr/nfs/export.py