]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: docs gen tags sort 48045/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:11:43 +0000 (10:11 +0200)
commitc72c69a1240d4fe95b8b99dd8c16384022f58e90
tree918dde53cd35f7384c0a0985b01333584816f730
parentb39c199834edd0cec8f754aa9b894e91975e7ecc
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