You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: Pool field was blank on editing namespace form and user needs to type out pool
Reason: `image` field is no longer supported in form yet edit function trying to fetch it and failing on that, hence no following updates for pool
Fix: Removed stale `image` field
Additional changes:
- included unit tests for edit to capture such errors
- enhanced unit tests to sue ActivatedRouteStub and `router.url`
- pre populating pool form on create with first rbd pool in the list
Fixes https://tracker.ceph.com/issues/70966
Regression by: https://tracker.ceph.com/issues/69900
Signed-off-by: Afreen Misbah <[email protected]>
Copy file name to clipboardExpand all lines: src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.html
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,10 @@
19
19
<input*ngIf="edit"
20
20
class="form-control"
21
21
type="text"
22
+
id="pool-edit"
22
23
formControlName="pool">
23
24
<select*ngIf="!edit"
24
-
id="pool"
25
+
id="pool-create"
25
26
class="form-select"
26
27
formControlName="pool">
27
28
<option*ngIf="rbdPools === null"
@@ -46,7 +47,8 @@
46
47
</div>
47
48
<!-- Namespace Count -->
48
49
<div*ngIf="!edit"
49
-
class="form-group row">
50
+
class="form-group row"
51
+
id="namespace-count">
50
52
<labelclass="cd-col-form-label"
51
53
for="nsCount">
52
54
<span[ngClass]="{'required': !edit}"
@@ -93,6 +95,7 @@
93
95
<ng-containeri18n>This field is required</ng-container>
94
96
</span>
95
97
<spanclass="invalid-feedback"
98
+
id="image-size-invalid"
96
99
*ngIf="edit && invalidSizeError">
97
100
<ng-containeri18n>Enter a value above than previous. A block device image can be expanded but not reduced.</ng-container>
Copy file name to clipboardExpand all lines: src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.spec.ts
Copy file name to clipboardExpand all lines: src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-form/nvmeof-namespaces-form.component.ts
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -87,23 +87,21 @@ export class NvmeofNamespacesFormComponent implements OnInit {
0 commit comments