From: cloudbehl Date: Wed, 9 Aug 2023 07:12:14 +0000 (+0530) Subject: mgr/dashboard: minor usability improvements X-Git-Tag: v19.0.0~626^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c49435e88992c90145553556811464872b5bf786;p=ceph.git mgr/dashboard: minor usability improvements Fixes: https://tracker.ceph.com/issues/62365 Signed-off-by: cloudbehl --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.ts index 4bf722df5115d..8df74f149d0f7 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.ts @@ -63,7 +63,7 @@ export class CephfsVolumeFormComponent extends CdForm implements OnInit { super(); this.editing = this.router.url.startsWith(`/pool/${URLVerbs.EDIT}`); this.action = this.editing ? this.actionLabels.EDIT : this.actionLabels.CREATE; - this.resource = $localize`volume`; + this.resource = $localize`File System`; this.hosts = { options: [], messages: new SelectMessages({ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts index c752a9c58e4b1..e91c816b48a2a 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts @@ -50,16 +50,17 @@ export class CephfsListComponent extends ListWithDetails implements OnInit { flexGrow: 2 }, { - name: $localize`Created`, - prop: 'mdsmap.created', + name: $localize`Enabled`, + prop: 'mdsmap.enabled', flexGrow: 2, - pipe: this.cdDatePipe + cellTransformation: CellTemplate.checkIcon }, { - name: $localize`Enabled`, - prop: 'mdsmap.enabled', + name: $localize`Created`, + prop: 'mdsmap.created', flexGrow: 1, - cellTransformation: CellTemplate.checkIcon + pipe: this.cdDatePipe, + cellTransformation: CellTemplate.timeAgo } ]; this.tableActions = [ diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html index e5ddb0b1c1344..e7dd6763c0f61 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html @@ -7,7 +7,7 @@ [ngClass]="{'d-flex': flexHeight}" aria-label="Details card">
-
FSID
+
Cluster ID
{{ detailsCardData.fsid }}
Orchestrator
{{ detailsCardData.orchestrator || 'Orchestrator is not available' }}
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html index 41efb5d65ca11..06abe48237776 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html @@ -8,7 +8,7 @@
  • diff --git a/src/pybind/mgr/dashboard/services/cluster.py b/src/pybind/mgr/dashboard/services/cluster.py index 70619e8b8b90f..f5df9bc0d9f41 100644 --- a/src/pybind/mgr/dashboard/services/cluster.py +++ b/src/pybind/mgr/dashboard/services/cluster.py @@ -47,7 +47,6 @@ class ClusterModel: @classmethod def get_capacity(cls) -> ClusterCapacity: df = mgr.get('df') - total_objects = 0 total_pool_bytes_used = 0 average_object_size = 0 total_data_pool_objects = 0 @@ -59,7 +58,6 @@ class ClusterModel: if pool_name in rgw_pools_data: objects = pool['stats']['objects'] pool_bytes_used = pool['stats']['bytes_used'] - total_objects += objects total_pool_bytes_used += pool_bytes_used if pool_name.endswith('.data'): total_data_pool_objects += objects @@ -72,7 +70,7 @@ class ClusterModel: total_avail_bytes=df['stats']['total_avail_bytes'], total_bytes=df['stats']['total_bytes'], total_used_raw_bytes=df['stats']['total_used_raw_bytes'], - total_objects=total_objects, + total_objects=total_data_pool_objects, total_pool_bytes_used=total_pool_bytes_used, average_object_size=average_object_size )._asdict()