]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: API Version changes do not apply to pre-defined methods (list, create... 41675/head
authorAashish Sharma <aashishsharma@localhost.localdomain>
Tue, 1 Jun 2021 05:09:24 +0000 (10:39 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Thu, 3 Jun 2021 13:03:04 +0000 (18:33 +0530)
commit4145337d73098c512365c794505f51579c413adb
treebf5896ed0b7b8e91f6c0a06ed4673f6d4736d554
parentaea5663c51e1154f697bdb32a73daac2b66f3c85
mgr/dashboard: API Version changes do not apply 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 dc4becfde8ddf8745b5d63c941236f95d9e64ba3)

Conflicts:
    src/pybind/mgr/dashboard/controllers/__init__.py(resolved conflicts due to https://github.com/ceph/ceph/pull/40063)
src/pybind/mgr/dashboard/controllers/docs.py
src/pybind/mgr/dashboard/tests/test_docs.py