]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: fix data mismatch in Advance section in Tiering.
authorDnyaneshwari <dnyaneshwari@li-9c9fbecc-2d5c-11b2-a85c-e2a7cc8a424f.ibm.com>
Thu, 21 Aug 2025 06:05:03 +0000 (11:35 +0530)
committerDnyaneshwari <dnyaneshwari@li-9c9fbecc-2d5c-11b2-a85c-e2a7cc8a424f.ibm.com>
Thu, 25 Sep 2025 08:03:54 +0000 (13:33 +0530)
Fixes: https://tracker.ceph.com/issues/72641
Signed-off-by: Dnyaneshwari Talwekar <dtalweka@redhat.com>
(cherry picked from commit 300e5058a5e80f7d679fc1d1c0a646f03c5dcb1b)

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts

index 15a9bb7b4c2c4b4b4770d7d8f1a5d7d129c19c04..68c9d393375d0464791f557a79c46791e1993c2f 100644 (file)
@@ -68,6 +68,7 @@ import { NotificationService } from '~/app/shared/services/notification.service'
 import { CdValidators } from '~/app/shared/forms/cd-validators';
 import { FormatterService } from '~/app/shared/services/formatter.service';
 import validator from 'validator';
+import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe';
 
 @Component({
   selector: 'cd-rgw-storage-class-form',
@@ -112,7 +113,8 @@ export class RgwStorageClassFormComponent extends CdForm implements OnInit {
     private router: Router,
     private route: ActivatedRoute,
     public formatter: FormatterService,
-    private cdRef: ChangeDetectorRef
+    private cdRef: ChangeDetectorRef,
+    private dimlessBinary: DimlessBinaryPipe
   ) {
     super();
     this.resource = $localize`Tiering Storage Class`;
@@ -184,6 +186,10 @@ export class RgwStorageClassFormComponent extends CdForm implements OnInit {
             secret_key: response?.secret,
             target_path: response?.target_path,
             retain_head_object: this.tierTargetInfo?.val?.retain_head_object || false,
+            multipart_sync_threshold:
+              this.dimlessBinary.transform(response?.multipart_sync_threshold) || '',
+            multipart_min_part_size:
+              this.dimlessBinary.transform(response?.multipart_min_part_size) || '',
             allow_read_through: this.tierTargetInfo?.val?.allow_read_through || false,
             restore_storage_class: this.tierTargetInfo?.val?.restore_storage_class,
             read_through_restore_days: this.tierTargetInfo?.val?.read_through_restore_days,