Bug 1828591

Summary: Preview Badge Appears Double on Search
Product: OpenShift Container Platform Reporter: Andrew Ballantyne <aballant>
Component: Management ConsoleAssignee: Bipul Adhikari <badhikar>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.5CC: aos-bugs, badhikar, hasha, jokerman, xiaocwan
Target Milestone: ---   
Target Release: 4.5.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: 2020-07-13 17:31:58 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
Two Badges - Pipeline Resources
none
dev preview badges fix none

Description Andrew Ballantyne 2020-04-27 21:02:37 UTC
Description of problem:
On the Search page, when looking at a resource that has a Dev or Tech Preview badge, it appears twice.

Version-Release number of selected component (if applicable):
OpenShift 4.5

How reproducible:


Steps to Reproduce:
1. Head over to the search page (dev or admin perspectives)
2. Search for a resource that uses a badge (ie, Pipeline Resources)

Actual results:
See two badges around the "Create <Resource>" button. Once Tech Preview is supported by the Dev Perspective, Pipeline Run will have two Tech Preview badges and no create button (as we don't allow direct creating of Pipeline Run CRs.

Expected results:
See only one badge for any given resource.

Additional info:
Likely related to the work done here: https://github.com/openshift/console/pull/5080

Comment 1 Andrew Ballantyne 2020-04-27 21:08:12 UTC
Created attachment 1682286 [details]
Two Badges - Pipeline Resources

Comment 2 ralpert 2020-04-29 17:41:47 UTC
*** Bug 1827976 has been marked as a duplicate of this bug. ***

Comment 5 XiaochuanWang 2020-04-30 07:48:21 UTC
Created attachment 1683208 [details]
dev preview badges fix

Comment 6 XiaochuanWang 2020-04-30 07:49:39 UTC
On 4.5.0-0.nightly-2020-04-30-023404, the Dev Preview Badge is well displays on the right side of page. 
Attached the screenshot for the fix. This could be Verified.

Comment 7 errata-xmlrpc 2020-07-13 17:31:58 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, 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