]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: add dueTime to rgw bucket validator
authorNizamudeen A <nia@redhat.com>
Fri, 24 May 2024 15:16:17 +0000 (20:46 +0530)
committerNizamudeen A <nia@redhat.com>
Tue, 25 Jun 2024 06:22:48 +0000 (11:52 +0530)
commit795d5b2395bc0128ed7a5f381c061128c8c9da4b
tree93c7bb27250752b16b63b17c041da972e5cda52a
parent29a918574760c2968c31d910a2cfacc3864f9bb1
mgr/dashboard: add dueTime to rgw bucket validator

the unique async validator which checks if the typed bucket is existing
or not in the bucket creation form sends a request to the backend on
each keystroke. Each keystroke will raise an exception if the bucket is
not found.

Fixes: https://tracker.ceph.com/issues/66221
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit c053782cc5d7f3f4493094d37b164e0531f46caf)
src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/buckets.po.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/ceph/rgw/rgw-user-form/rgw-user-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-validators.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/forms/cd-validators.ts