]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Change pool info API endpoint
authorStephan Müller <smueller@suse.com>
Mon, 2 Mar 2020 10:08:23 +0000 (11:08 +0100)
committerStephan Müller <smueller@suse.com>
Mon, 9 Mar 2020 11:35:58 +0000 (12:35 +0100)
commit2ff8540c8117e77f7d690606b484c43dda09e95b
tree4707532acdca817d151f1430b0653c2eab136f82
parent3e400f6a0b6bc4747923099c2ae1cf83e35f0806
mgr/dashboard: Change pool info API endpoint

Moves the "_info" endpoint of pool into an equivalent
UI-API call with the name "info".

Added three more attributes to the info dict which enables the dashboard
to only call info to get all the needed data, currently three calls will
be used to do that.

Removed pool_name parameter as the outcome was not used.

Updated the tests and related angular files accordingly.

Fixes: https://tracker.ceph.com/issues/44371
Signed-off-by: Stephan Müller <smueller@suse.com>
qa/tasks/mgr/dashboard/test_pool.py
src/pybind/mgr/dashboard/controllers/pool.py
src/pybind/mgr/dashboard/frontend/src/app/shared/api/pool.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/pool.service.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/models/pool-form-info.ts