Bug 1829869
Summary: | Data entered in YAML editor can be lost when switching to Form editor | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Peter Kreuser <pkreuser> | ||||||
Component: | Management Console | Assignee: | Jon Jackson <jonjacks> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 4.5 | CC: | aos-bugs, jokerman, xiaocwan | ||||||
Target Milestone: | --- | ||||||||
Target Release: | 4.5.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | No Doc Update | |||||||
Doc Text: |
Manifested, discovered, and fixed before release.
|
Story Points: | --- | ||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-07-13 17:33:40 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | 1827538 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
There is a fix pending for this, but the PR can't be opened until https://github.com/openshift/console/pull/5237 merges Created attachment 1688795 [details]
Verification screenshot
Latest version is as the design now. (refer to the the screenshot from attachment) Verified on 4.5.0-0.nightly-2020-05-15-011814 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |
Created attachment 1683317 [details] Short term UX design Description of problem: When using the new form/YAML switching interaction (new for 4.4/4.5) for creating and editing operator custom resources, the user can enter incorrectly formed YAML in the YAML editor and is not notified that upon switching to the form editor, this data is lost. Ideally we'd highlight in the editor that the YAML is malformed, but we should at least warn the user on switching to the form editor that this malformed YAML will be lost (ideally with the line number of the malformed YAML if possible.) Version-Release number of selected component (if applicable): 4.5 How reproducible: Always Steps to Reproduce: 1.Create a new operator custom resource (operand) and enter malformed YAML in the YAML editor 2.Switch to the form editor 3.Switch back to the YAML editor. Actual results: The malformed YAML is no longer present upon switching back to the YAML editor. Expected results: The user should have been warned when switching away from the YAML editor initially that the malformed YAML will be lost, so they can review the YAML or be aware of its removal. Additional info: Discussed solution with Ben P and Jon J, maybe we just do attached design for now with intent to enhance in 4.6.