From: Dnyaneshwari Date: Thu, 21 Aug 2025 06:05:03 +0000 (+0530) Subject: mgr/dashboard: fix data mismatch in Advance section in Tiering. X-Git-Tag: testing/wip-vshankar-testing-20250915.151840-debug~4^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=300e5058a5e80f7d679fc1d1c0a646f03c5dcb1b;p=ceph-ci.git mgr/dashboard: fix data mismatch in Advance section in Tiering. Fixes: https://tracker.ceph.com/issues/72641 Signed-off-by: Dnyaneshwari Talwekar --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts index 15a9bb7b4c2..68c9d393375 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-storage-class-form/rgw-storage-class-form.component.ts @@ -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,