mgr/dashboard:Improvements in cluster > OSDs

Made osd-id the first column of the table instead of Host.

Fixes:https://tracker.ceph.com/issues/47478
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
This commit is contained in:
Aashish Sharma 2020-10-01 17:01:47 +05:30
parent ac33cea383
commit 2df7bca459
2 changed files with 3 additions and 10 deletions

View File

@ -267,8 +267,8 @@ export class OsdListComponent extends ListWithDetails implements OnInit {
}
];
this.columns = [
{ prop: 'host.name', name: $localize`Host` },
{ prop: 'id', name: $localize`ID`, flexGrow: 1, cellTransformation: CellTemplate.bold },
{ prop: 'host.name', name: $localize`Host` },
{
prop: 'collectedStates',
name: $localize`Status`,

View File

@ -4,9 +4,8 @@ from collections import defaultdict
try:
from mock import Mock
except ImportError:
from unittest.mock import Mock
from unittest.mock import patch, Mock
from .. import mgr
from ..controllers.cephfs import CephFS
from . import ControllerTestCase # pylint: disable=no-name-in-module
@ -25,16 +24,10 @@ def get_metadata_mock(key, meta_key):
}[key]
@patch('dashboard.mgr.get_metadata', Mock(side_effect=get_metadata_mock))
class CephFsTest(ControllerTestCase):
cephFs = CephFS()
@classmethod
def setup_server(cls):
mgr.get_metadata = Mock(side_effect=get_metadata_mock)
def tearDown(self):
mgr.get_metadata.stop()
def test_append_of_mds_metadata_if_key_is_not_found(self):
mds_versions = defaultdict(list)
# pylint: disable=protected-access