]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: docs gen tags sort 48046/head
authorPere Diaz Bou <pdiazbou@redhat.com>
Fri, 9 Sep 2022 09:18:42 +0000 (11:18 +0200)
committerPere Diaz Bou <pdiazbou@redhat.com>
Mon, 12 Sep 2022 08:12:32 +0000 (10:12 +0200)
commitdec33199ef307f48bef1d1290c7ebef88f490968
tree70139ee534c919ab8e182106c73bae068d565ea9
parent8382a00d9fae7a3543261c94328cc288152d3c8e
mgr/dashboard: docs gen tags sort

When generating tags the order of endpoints wasn't taken into account.
Two endpoints with the same url prefix, for example `/api/cluster/` and
`/api/cluster/user`, have different docs and the tags is generated from
a doc of one of these two, and since the order of these endpoints might
vary it is imperative to sort them to have a deterministic output.

Signed-off-by: Pere Diaz Bou <pdiazbou@redhat.com>
(cherry picked from commit 9673ed18699cdca3f032fd131d4248b010750ef6)
src/pybind/mgr/dashboard/controllers/docs.py
src/pybind/mgr/dashboard/tox.ini