Bug 1895065

Summary: Schema / Samples / Snippets Tabs are all selected at the same time
Product: OpenShift Container Platform Reporter: Andrew Ballantyne <aballant>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, cjerolim, jhadvig, jokerman, yapei
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: The yaml editor resource sidebar could not toggle between sample and snippets anymore after adding i18n support. Consequence: When viewing a YAML editor sidebar, the tabs for Schema/Samples/Snippets show up all selected at the same time. Fix: Keep the translation in ResourceSidebar and keep SimpleTabNav "translation free". Result: The selected tab is the only one selected
Story Points: ---
Clone Of: Environment:
Version: 4.7.0-0.nightly-2020-10-27-051128 Cluster ID: f48ef25b-44fa-4820-a24e-f71c75bd1108 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Last Closed: 2021-02-24 15:31:24 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:
Attachments:
Description Flags
NetworkPoliciesCreateYAML none

Description Andrew Ballantyne 2020-11-05 16:56:34 UTC
Created attachment 1726942 [details]
NetworkPoliciesCreateYAML

Description of problem:
When viewing a YAML editor sidebar, the tabs for Schema/Samples/Snippets show up all selected at the same time, despite the view under it.


Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-10-27-051128

How reproducible:
Always (needs at least two tabs for it to be apparent)

Steps to Reproduce:
1. Navigate to the Network Polices Create YAML
2. Open the sidebar (if it's not already open)

Actual results:
Both tabs are selected (see screenshot)

Expected results:
The selected tab (and subsequent content) should be the only one selected

Additional info:
Did not test in previous releases, just saw this today.

Comment 1 Christoph Jerolimov 2020-11-05 18:24:24 UTC
@jhadvig I created this PR to fix this: https://github.com/openshift/console/pull/7125

If you want solve this with another approche feel free to close my ticket.

Comment 3 Yanping Zhang 2020-11-09 08:38:14 UTC
Checked on ocp 4.7 cluster with payload 4.7.0-0.nightly-2020-11-08-225909.
Steps to verify:
  Go to the Network Polices Create YAML, then open the sidebar, the first tab is selected, and could click to select the second tab, only one tab is selected when switch.
The bug is  fixed.

Comment 6 errata-xmlrpc 2021-02-24 15:31:24 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.7.0 security, bug fix, and enhancement 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-2020:5633