]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: docs gen tags sort 48032/head
authorPere Diaz Bou <pdiazbou@redhat.com>
Fri, 9 Sep 2022 09:18:42 +0000 (11:18 +0200)
committerPere Diaz Bou <pdiazbou@redhat.com>
Fri, 9 Sep 2022 20:43:01 +0000 (22:43 +0200)
commit9673ed18699cdca3f032fd131d4248b010750ef6
tree6022e95e530783074442c5f1c1e9d95642584e06
parent0a60e899920c1c6b7f0e154735227b1078f71ecb
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>
src/pybind/mgr/dashboard/controllers/docs.py
src/pybind/mgr/dashboard/tox.ini