Bug 1720245
Summary: | Validate field in CloudForms Service Dialogs | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Khushbu Borole <kborole> | |
Component: | UI - OPS | Assignee: | Martin Hradil <mhradil> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Niyaz Akhtar Ansari <nansari> | |
Severity: | medium | Docs Contact: | Red Hat CloudForms Documentation <cloudforms-docs> | |
Priority: | medium | |||
Version: | 5.10.4 | CC: | bmidwood, dmetzger, hkataria, jprause, lavenel, mhradil, mpovolny, mshriver, nansari, obarenbo, simaishi | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.11.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.11.0.14 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1727990 (view as bug list) | Environment: | ||
Last Closed: | 2019-12-13 15:01:33 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | Bug | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | CFME Core | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1727990 |
Description
Khushbu Borole
2019-06-13 13:31:56 UTC
New commits detected on ManageIQ/ui-components/master: https://github.com/ManageIQ/ui-components/commit/70541f5e02974cf2707caaacd52f2fe471412626 commit 70541f5e02974cf2707caaacd52f2fe471412626 Author: Martin Hradil <mhradil> AuthorDate: Thu Jul 4 09:46:34 2019 -0400 Commit: Martin Hradil <mhradil> CommitDate: Thu Jul 4 09:46:34 2019 -0400 DialogField#changesHappened - simplify, do not convert data DialogField.changesHappened triggers field validation, then it would convert arrays to joined strings, pass the converted value to DialogUser.updateDialogField, which runs the validation again, with the changed value. We should not do any value transformation before serializing for save. https://bugzilla.redhat.com/show_bug.cgi?id=1720245 src/dialog-user/components/dialog-user/dialogField.ts | 38 +- 1 file changed, 18 insertions(+), 20 deletions(-) https://github.com/ManageIQ/ui-components/commit/f0e2cad1afd5e9ea0d269aa4ede3704ee29bc2f8 commit f0e2cad1afd5e9ea0d269aa4ede3704ee29bc2f8 Author: Martin Hradil <mhradil> AuthorDate: Thu Jul 4 12:01:32 2019 -0400 Commit: Martin Hradil <mhradil> CommitDate: Thu Jul 4 12:01:32 2019 -0400 dialogData.validateField - always expect value to validate, don't assume now the function doesn't have to guess, so it won't fall back to default_value when being passed a falsy value from validateFields Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1720245 src/dialog-user/services/dialogData.spec.ts | 26 +- src/dialog-user/services/dialogData.ts | 13 +- 2 files changed, 19 insertions(+), 20 deletions(-) Verified in Version 5.11.0.14.20190710225033_cb17ff0 |