]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: minor usability improvements 53143/head
authorcloudbehl <cloudbehl@gmail.com>
Wed, 9 Aug 2023 07:12:14 +0000 (12:42 +0530)
committercloudbehl <cloudbehl@gmail.com>
Thu, 24 Aug 2023 15:19:22 +0000 (20:49 +0530)
Fixes: https://tracker.ceph.com/issues/62365
Signed-off-by: cloudbehl <cloudbehl@gmail.com>
(cherry picked from commit c49435e88992c90145553556811464872b5bf786)

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 b0f61fc6d516fdbbf6ccbfb9525e52879594037a..88bc34813924c7d60e593378ca228f2265529293 100644 (file)
@@ -66,16 +66,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 b3baaf1117f16285772aec37f7c6347811fb3055..bac58e15e0b28cf313fc21a0d496935caf6df1c3 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 359e9dd9b853c7731a417f623bdacee94df66cd7..e4bc1293feef3325eddbae74d8ec8bfd34f75cce 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()