]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: drop container image name and id from services list 41505/head
authorAvan Thakkar <athakkar@localhost.localdomain>
Wed, 19 May 2021 21:34:01 +0000 (03:04 +0530)
committerAvan Thakkar <athakkar@localhost.localdomain>
Mon, 24 May 2021 18:41:13 +0000 (00:11 +0530)
Fixes: https://tracker.ceph.com/issues/50889
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
Dropping container image name and id columns from services list.

(cherry picked from commit ee98d73a231ce99e9a5a74ed602724c2111ee93d)

src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/services.po.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/services.component.ts

index 18b17c2f23ea4b30ca90186aeb563deae308d1c1..38f2c24d46deaab9babe9788f43fc46e31ff6d3c 100644 (file)
@@ -10,12 +10,10 @@ export class ServicesPageHelper extends PageHelper {
 
   columnIndex = {
     service_name: 2,
-    container_image_name: 3,
-    container_image_id: 4,
-    placement: 5,
-    running: 6,
-    size: 7,
-    last_refresh: 8
+    placement: 3,
+    running: 4,
+    size: 5,
+    last_refresh: 6
   };
 
   check_for_service() {
index f36f6c3956836d561a8a23cefaa279ccac62b761..69d28e7051401091d51cff5109cb3f32f796668a 100644 (file)
@@ -32,8 +32,6 @@ describe('ServicesComponent', () => {
       service_type: 'osd',
       service_name: 'osd',
       status: {
-        container_image_id: 'e70344c77bcbf3ee389b9bf5128f635cf95f3d59e005c5d8e67fc19bcc74ed23',
-        container_image_name: 'docker.io/ceph/daemon-base:latest-master-devel',
         size: 3,
         running: 3,
         last_refresh: '2020-02-25T04:33:26.465699'
@@ -43,8 +41,6 @@ describe('ServicesComponent', () => {
       service_type: 'crash',
       service_name: 'crash',
       status: {
-        container_image_id: 'e70344c77bcbf3ee389b9bf5128f635cf95f3d59e005c5d8e67fc19bcc74ed23',
-        container_image_name: 'docker.io/ceph/daemon-base:latest-master-devel',
         size: 1,
         running: 1,
         last_refresh: '2020-02-25T04:33:26.465766'
index 94b47f4f56d1bfabd3dacb3f0e8ac9c32c4bd560..7cba81ee49eab486c95e88cbbdb70609058c48db 100644 (file)
@@ -8,7 +8,6 @@ import { ListWithDetails } from '~/app/shared/classes/list-with-details.class';
 import { CriticalConfirmationModalComponent } from '~/app/shared/components/critical-confirmation-modal/critical-confirmation-modal.component';
 import { ActionLabelsI18n, URLVerbs } from '~/app/shared/constants/app.constants';
 import { TableComponent } from '~/app/shared/datatable/table/table.component';
-import { CellTemplate } from '~/app/shared/enum/cell-template.enum';
 import { Icons } from '~/app/shared/enum/icons.enum';
 import { CdTableAction } from '~/app/shared/models/cd-table-action';
 import { CdTableColumn } from '~/app/shared/models/cd-table-column';
@@ -96,20 +95,6 @@ export class ServicesComponent extends ListWithDetails implements OnChanges, OnI
         prop: 'service_name',
         flexGrow: 1
       },
-      {
-        name: $localize`Container image name`,
-        prop: 'status.container_image_name',
-        flexGrow: 3
-      },
-      {
-        name: $localize`Container image ID`,
-        prop: 'status.container_image_id',
-        flexGrow: 1.5,
-        cellTransformation: CellTemplate.truncate,
-        customTemplateConfig: {
-          length: 12
-        }
-      },
       {
         name: $localize`Placement`,
         prop: '',