]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Map dev 'releases' to master 24763/head
authorZack Cerza <zack@redhat.com>
Thu, 25 Oct 2018 16:50:42 +0000 (10:50 -0600)
committerZack Cerza <zack@redhat.com>
Fri, 26 Oct 2018 17:22:53 +0000 (11:22 -0600)
commit2887f8e9736d705416d5fa4ff9ec5fd1dd8be288
treeaff17548fa866265e29811ee587e9d3bdeec1c60
parent2e6fd44b640b851cb0841db357a887c42ad2d239
mgr/dashboard: Map dev 'releases' to master

In CephReleaseNamePipe, we used to blindly return the "release name" portion of
the version string. This ends up e.g. returning 'nautilus' for master right
now, which causes us to link to nonexistent documentation on ceph.com.  This
change causes builds marked as 'dev' (as opposed to 'stable') to report
'master' as their release name.

Fixes: https://tracker.ceph.com/issues/36416
Signed-off-by: Zack Cerza <zack@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/ceph-release-name.pipe.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/pipes/ceph-release-name.pipe.ts