Skip to content

Commit 300e505

Browse files
DnyaneshwariPegonzal
authored andcommitted
mgr/dashboard: fix data mismatch in Advance section in Tiering.
Fixes: https://tracker.ceph.com/issues/72641 Signed-off-by: Dnyaneshwari Talwekar <[email protected]>
1 parent 4d5ad8c commit 300e505

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ import { NotificationService } from '~/app/shared/services/notification.service'
6868
import { CdValidators } from '~/app/shared/forms/cd-validators';
6969
import { FormatterService } from '~/app/shared/services/formatter.service';
7070
import validator from 'validator';
71+
import { DimlessBinaryPipe } from '~/app/shared/pipes/dimless-binary.pipe';
7172

7273
@Component({
7374
selector: 'cd-rgw-storage-class-form',
@@ -112,7 +113,8 @@ export class RgwStorageClassFormComponent extends CdForm implements OnInit {
112113
private router: Router,
113114
private route: ActivatedRoute,
114115
public formatter: FormatterService,
115-
private cdRef: ChangeDetectorRef
116+
private cdRef: ChangeDetectorRef,
117+
private dimlessBinary: DimlessBinaryPipe
116118
) {
117119
super();
118120
this.resource = $localize`Tiering Storage Class`;
@@ -184,6 +186,10 @@ export class RgwStorageClassFormComponent extends CdForm implements OnInit {
184186
secret_key: response?.secret,
185187
target_path: response?.target_path,
186188
retain_head_object: this.tierTargetInfo?.val?.retain_head_object || false,
189+
multipart_sync_threshold:
190+
this.dimlessBinary.transform(response?.multipart_sync_threshold) || '',
191+
multipart_min_part_size:
192+
this.dimlessBinary.transform(response?.multipart_min_part_size) || '',
187193
allow_read_through: this.tierTargetInfo?.val?.allow_read_through || false,
188194
restore_storage_class: this.tierTargetInfo?.val?.restore_storage_class,
189195
read_through_restore_days: this.tierTargetInfo?.val?.read_through_restore_days,

0 commit comments

Comments
 (0)