Bug 1866033

Summary: All content selected when visiting YAML tab
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.6CC: aos-bugs, jokerman
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.6.0-0.nightly-2020-08-02-134243 Cluster ID: 6de0fe23-5d9b-4add-a336-1efc5fad0306 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0
Last Closed: 2020-10-27 16:23:15 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:

Description Samuel Padgett 2020-08-04 17:15:55 UTC
This seems to happen when viewing YAML for an existing resource or creating a new resource from YAML. The entire content is preselected when you visit the tab. We shouldn't be preselecting the content. It makes it harder to read and makes it easy to accidentally delete.

This might be a regression from bumping the monaco dependencies in https://github.com/openshift/console/pull/6157

Comment 1 ralpert 2020-08-05 20:01:27 UTC
I don't see anything obvious; I reached out to Josh Pinkney to see if he has any ideas here.

Comment 2 Samuel Padgett 2020-08-05 21:23:03 UTC
Hi, Rebecca. I happened to start looking at this when I opened the bug, and I have a fix.

Comment 5 XiaochuanWang 2020-08-11 02:06:10 UTC
This is not reproduced.
Verified on 4.6.0-0.nightly-2020-08-10-200500

Comment 7 errata-xmlrpc 2020-10-27 16:23:15 UTC
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 (OpenShift Container Platform 4.6 GA Images), 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:4196