]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard:OSDs placement text is unreadable 41124/head
authorAashish Sharma <aashishsharma@localhost.localdomain>
Thu, 29 Apr 2021 12:57:59 +0000 (18:27 +0530)
committerAashish Sharma <aashishsharma@localhost.localdomain>
Mon, 3 May 2021 07:08:30 +0000 (12:38 +0530)
While displaying the host pattern in the OSDs placement tab, it gets splited with semi-colons. Also adjusted the column size of Container Image ID and Placement columns.

Fixes: https://tracker.ceph.com/issues/50580
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 543b02436f18876a56757226c686a5c2c33c7c33)

Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.ts (PlacementPipe takes i18n as input param)

src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/placement.pipe.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/placement.pipe.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.ts

index 7db2d14f9171a94cd0f372da7bdcc8e8b863218f..8ea3602c4a59ea3a904c4490c60f3aafaf4f25a3 100644 (file)
@@ -73,10 +73,10 @@ describe('PlacementPipe', () => {
     expect(
       pipe.transform({
         placement: {
-          host_pattern: '*'
+          host_pattern: 'abc.ceph.xyz.com'
         }
       })
-    ).toBe('*');
+    ).toBe('abc.ceph.xyz.com');
   });
 
   it('transforms placement (6)', () => {
index 3114b1c15ac4a17bd716d0ba23d221394343bed0..79a7e8a52502736f362b3a4aefc79f2807e37b63 100644 (file)
@@ -37,7 +37,7 @@ export class PlacementPipe implements PipeTransform {
       kv.push(this.i18n('label:{{label}}', { label }));
     }
     if (_.isString(hostPattern)) {
-      kv.push(...hostPattern);
+      kv.push(hostPattern);
     }
     return kv.join(';');
   }
index cd977bc714e63a1f6beafa118a17cc5de4233cd4..43caa2cea20b13d1c7ff5b386b9fc53824ebe93d 100644 (file)
@@ -98,7 +98,7 @@ export class ServicesComponent extends ListWithDetails implements OnChanges, OnI
       {
         name: this.i18n('Container image ID'),
         prop: 'status.container_image_id',
-        flexGrow: 3,
+        flexGrow: 1.5,
         cellTransformation: CellTemplate.truncate,
         customTemplateConfig: {
           length: 12
@@ -108,7 +108,7 @@ export class ServicesComponent extends ListWithDetails implements OnChanges, OnI
         name: this.i18n('Placement'),
         prop: '',
         pipe: new PlacementPipe(this.i18n),
-        flexGrow: 1
+        flexGrow: 2
       },
       {
         name: this.i18n('Running'),