]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: API Version changes doesnt appy to pre-defined methods(list, create...
authorAashish Sharma <aashishsharma@localhost.localdomain>
Wed, 19 May 2021 05:57:13 +0000 (11:27 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Thu, 3 Jun 2021 13:02:36 +0000 (18:32 +0530)
commitaea5663c51e1154f697bdb32a73daac2b66f3c85
treea9920ef32091290b065de41393544eeb32e3d0e7
parent424295d3d9f819a9cbc208275c6e7398d3f2ab76
mgr/dashboard: API Version changes doesnt appy to pre-defined methods(list, create etc.)

Methods like list(), create(), get() etc doesn't get applied the version.Also for the endpoints that get the version changed, the docs and the request header has still the version v1.0+ in them. So with the version reduced it gives 415 error when trying to make the request. This PR fixes this issue.

Fixes: https://tracker.ceph.com/issues/50855
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit bb52092cd37855a3dfcfae9287e231865e9af3fa)

Conflicts:
    src/pybind/mgr/dashboard/controllers/__init__.py(resolved conflicts due to https://github.com/ceph/ceph/pull/40063)
    src/pybind/mgr/dashboard/tests/test_docs.py(removed unused import DEFAULT_VERSION)
doc/dev/developer_guide/dash-devel.rst
src/pybind/mgr/dashboard/controllers/__init__.py
src/pybind/mgr/dashboard/controllers/docs.py
src/pybind/mgr/dashboard/tests/test_docs.py
src/pybind/mgr/dashboard/tests/test_versioning.py