Bug 1998575

Summary: Insert sample YAML do nothing on BuildConfig and was mistakenly shown when editing a resource
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Christoph Jerolimov <cjerolim>
Status: CLOSED ERRATA QA Contact: Debsmita Santra <dsantra>
Severity: low Docs Contact:
Priority: medium    
Version: 4.9CC: aos-bugs, dsantra, mifiedle, nmukherj
Target Milestone: ---   
Target Release: 4.9.0   
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: 2021-10-18 17:49:29 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 Christoph Jerolimov 2021-08-27 16:00:49 UTC
Description of problem:
When the user opens the new BuildConfig form, switches to the YAML editor and inserts a sample YAML nothing happen (in production mode) and shows a fullscreen error (in dev mode).

The BuildConfig and other yaml editors must now show samples in the sidebar when the user edits a resource. This happen on the BuildConfig form page, but also in the Pipelines Builder.

Version-Release number of selected component (if applicable):
4.9 master (tested with 5a03b49462d0f3b1b35409814ae722f96c753cf3)

How reproducible:
Always

Steps to Reproduce:
1. Open developer perspective and import a deployment from git
2. Switch to Builds, and select "Edit BuildConfig" for the new created BuildConfig.
3. Switch to the YAML view
4. Open the sidebar and switch to Samples tab
5. Press "Try it" for one of the examples.

Actual results:
Nothing happen (in production mode) and shows a fullscreen error (in dev mode)

Expected results:
The console should insert the yaml but also should not show samples if the users edits a resource.

Additional info:
None

Comment 4 Debsmita Santra 2021-09-03 16:00:52 UTC
verified on 4.9.0-0.nightly-2021-09-01-193941

Comment 7 errata-xmlrpc 2021-10-18 17:49:29 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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759