Bug 1805994 - OperatorHub can have duplicate items when 'all projects' is selected, which also breaks filtering
Summary: OperatorHub can have duplicate items when 'all projects' is selected, which a...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.5.0
Assignee: Joe Caiani
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks: 1806155
TreeView+ depends on / blocked
 
Reported: 2020-02-21 19:48 UTC by Samuel Padgett
Modified: 2020-08-04 18:01 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1806155 (view as bug list)
Environment:
Last Closed: 2020-08-04 18:01:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
tolerate duplicated operators in operatorhub (184.17 KB, image/png)
2020-03-04 06:54 UTC, XiaochuanWang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 4375 0 None closed Bug 1805994: Remove duplicate entries on operator hub page 2020-06-23 08:43:39 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-08-04 18:01:25 UTC

Description Samuel Padgett 2020-02-21 19:48:33 UTC
This bug was initially created as a copy of Bug #1799463

I am copying this bug because: 

We should tolerate duplicates in console even if they're not expected.

Description of problem:

Selecting 'all-projects' on the OperatorHub page causes the operator items on the page to be duplicated and breaks the filtering functionality.

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

How reproducible:
Always under the correct conditions

Steps to Reproduce:
1. Use a 4.4 cluster and ensure the following default sources are available and enabled:
   - redhat-operators
   - certified-operators
   - community-operators
   - redhat-marketplace 
2. Navigate to Operators > OperatorHub
3. Select 'default' from the projects dropdown
4. Note the item count
5. Enter 'test' in the keyword filter
6. Note the filtered item count
7. Select 'all projects' from the projects dropdown
8. Enter 'test' in the keyword filter

Actual results:
Item count is doubled both before and after the filter term is entered and duplicate items are being displayed on the page. Item count also does not match the number of items displayed on the page.

Expected results:
Duplicate items should not be displayed and item count should match the number of items displayed.

Additional info:
Suspect that packageManifest and marketPlacePackageManifest props retreived by firehose component contain overlapping results depending on what catalog sources are available and what namespace is selected. Probably need to either add a special case when all projects is selected, adjust our selectors to ensure no overlap, or add some logic after the call to reduce the package manifest props to a single unique list.

Comment 4 XiaochuanWang 2020-03-04 06:54:56 UTC
Created attachment 1667399 [details]
tolerate duplicated operators in operatorhub

Comment 7 XiaochuanWang 2020-03-12 06:38:46 UTC
Thank you for confirm! 
This should be fixed (Ignore the different name of packagemanifests which is not the original issue)
Verified on 4.5.0-0.nightly-2020-03-11-214319

Comment 8 tony.wu 2020-03-31 22:14:42 UTC
Thanks, verifed the issue has been fixed on version: 4.5.0-0.nightly-2020-03-30-203132.

Not sure what's the process, do I still need to do anything with this bug?

Comment 10 errata-xmlrpc 2020-08-04 18:01:22 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.5 image release 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


Note You need to log in before you can comment on or make changes to this bug.