]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: simplify object locking fields in 'Bucket Creation' form 41656/head
authorAlfonso Martínez <almartin@redhat.com>
Thu, 3 Jun 2021 10:25:45 +0000 (12:25 +0200)
committerAlfonso Martínez <almartin@redhat.com>
Thu, 3 Jun 2021 10:25:45 +0000 (12:25 +0200)
commit09394a19913b8159a7608a594e29886eaae7570e
treebacea341db1fd97399f7d6d00055850f372d3e09
parent9d3f5ae9c23512030f7fa588408c24e3a30c7bf9
mgr/dashboard: simplify object locking fields in 'Bucket Creation' form

- UI: The object locking retention period must be expressed in days.
  Years value from API (as API keeps param parity with RGW API) are converted to days.
- API: add more validation and increase test coverage.

Fixes: https://tracker.ceph.com/issues/49885
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/frontend/cypress/integration/rgw/buckets.po.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-bucket-form/rgw-bucket-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-bucket.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-bucket.service.ts
src/pybind/mgr/dashboard/services/rgw_client.py
src/pybind/mgr/dashboard/tests/test_rgw_client.py