]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: minor usability improvements 52895/head
authorcloudbehl <cloudbehl@gmail.com>
Wed, 9 Aug 2023 07:12:14 +0000 (12:42 +0530)
committercloudbehl <cloudbehl@gmail.com>
Fri, 11 Aug 2023 18:46:22 +0000 (00:16 +0530)
Fixes: https://tracker.ceph.com/issues/62365
Signed-off-by: cloudbehl <cloudbehl@gmail.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-form/cephfs-form.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/cephfs/cephfs-list/cephfs-list.component.ts
src/pybind/mgr/dashboard/frontend/src/app/ceph/dashboard-v3/dashboard/dashboard-v3.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-overview-dashboard/rgw-overview-dashboard.component.html
src/pybind/mgr/dashboard/services/cluster.py

index 4bf722df5115d286c871e89a66b1e228c97726eb..8df74f149d0f70ec08e77d6db577ecd7b9218a76 100644 (file)
@@ -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({
index c752a9c58e4b100bb5872d7a338d0719648e0407..e91c816b48a2a123ac0bbfac00059340a7a75737 100644 (file)
@@ -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 = [
index e5ddb0b1c13448089cc7beec9a1f10e7c3f5aa4c..e7dd6763c0f61b66500a8812e5343dba0a33d124 100644 (file)
@@ -7,7 +7,7 @@
              [ngClass]="{'d-flex': flexHeight}"
              aria-label="Details card">
       <dl class="ms-4 me-4">
-        <dt>FSID</dt>
+        <dt>Cluster ID</dt>
         <dd>{{ detailsCardData.fsid }}</dd>
         <dt>Orchestrator</dt>
         <dd i18n>{{ detailsCardData.orchestrator || 'Orchestrator is not available' }}</dd>
index 41efb5d65ca11162c50bee2968d4044faa6b8caa..06abe48237776482efc54bffb1a55dcf065c7d35 100644 (file)
@@ -8,7 +8,7 @@
       <li class="list-group-item">
         <cd-card-row [data]="rgwDaemonCount"
                      link="/rgw/daemon"
-                     title="Daemon"
+                     title="Gateway"
                      summaryType="simplified"
                      *ngIf="rgwDaemonCount != null"></cd-card-row>
       </li>
index 70619e8b8b90fdb3fd1546b3134ff5a9b7e9809a..f5df9bc0d9f41f81b7fd2a54a0432daf6ed1f34a 100644 (file)
@@ -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()