Bug 2063312

Summary: Switching between YAML view and a web console form, not working for all resources.
Product: OpenShift Container Platform Reporter: Tom Dale <tdale>
Component: Management ConsoleAssignee: Joe Caiani <jcaiani>
Status: CLOSED NOTABUG QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.10CC: aos-bugs, tdale, yapei
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-29 00:45:34 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:    
Bug Blocks: 2009709    

Description Tom Dale 2022-03-11 18:39:44 UTC
Description of problem:
Cannot toggle between yaml view and form view for all resources.

The 4.10 Release Notes state:
"Previously, changes were not retained when switching between YAML view and Form view on the web console. Additionally, after switching to YAML view, you could not return to Form view. With this update, you can now easily switch between YAML view and Form view on the web console without losing changes." - from https://docs.openshift.com/container-platform/4.10/release_notes/ocp-4-10-release-notes.html#ocp-4-10-networkobservability-switch

In 4.10.3 I see this toggle and automatic save functionality in operators custom resources but not deployments, pvcs, buildconfigs, etc. For these I see the old behavior where switching to yaml view from form does not retain changes and prevents from returning to form view.

If this is expected behavior and instead should be a bug against the docs, please reassign.


Version-Release number of selected component (if applicable):
4.10.3 , cluster running on IBM Z.


How reproducible:
Tested on 3 clusters seen on each.

Steps to Reproduce:
1. Open console. Click "PersistentVolumeClaims" (or any other resource with form functionality).
2. Click "Create PersistentVolumeClaim"  and type something in the name field.
3. Click "edit yaml" . This will reset the name field and not show toggle to return to form view.

Comment 1 Yadan Pei 2022-03-28 08:06:39 UTC
I understand that we ONLY support form & yaml sync for operators custom resources, for normal workloads pvc, pods etc, we didn't add support yet
  
For the release notes https://docs.openshift.com/container-platform/4.10/release_notes/ocp-4-10-release-notes.html#ocp-4-10-networkobservability-switch you are pointing at, it is targeted for NetworkPolicy

Comment 2 Tom Dale 2022-03-28 13:19:57 UTC
Ok, I hadn't realized that section in the release notes was a subsection only for networkpolicy, seemed like it is a general statement. Thanks for looking into this. From my side I'm fine with closing the bug.

Comment 3 Yadan Pei 2022-03-29 00:45:34 UTC
Thank you Tom!

I will close the bug and feel free to re-open if any issues : )