Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1768716

Summary: Launcher section don't show up on Namespace Overview
Product: OpenShift Container Platform Reporter: Yadan Pei <yapei>
Component: Management ConsoleAssignee: Robb Hamilton <rhamilto>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.3.0CC: aos-bugs, jokerman, rhamilto, yapei
Target Milestone: ---   
Target Release: 4.3.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-01-23 11:10:52 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 Yadan Pei 2019-11-05 05:25:43 UTC
Description of problem:
When we create ConsoleLink with location set as NamespaceDashboard, there will be a Launcher section on Project Dashboard page, but the Launcher section is missing on Namespace Overview page

Version-Release number of selected component (if applicable):
4.3.0-0.nightly-2019-11-04-210904

How reproducible:
Always

Steps to Reproduce:
1. Create ConsoleLink with location set as NamespaceDashboard
$ cat > helplink1.yaml << EOF
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
  name: namespaced-dashboard-link-for-all-namespaces
spec:
  href: 'https://www.example.com'
  location: NamespaceDashboard
  text: This appears in all namespaces
EOF
$ oc create -f helplink1.yaml
2. Check Launcher in project details
steps: Home -> Project -> default
3. Check Launcher in namespace details
steps: Administration -> Namespaces -> default

Actual results:
2. There is Launcher section and `This appears in all namespaces` link
3. No Launcher section

Expected results:
3. According to PR https://github.com/openshift/console/pull/2698, there should be a Launcher section on namespace Overview page with correct links shown

Additional info:

Comment 1 Robb Hamilton 2019-11-05 13:56:29 UTC
@Yadan, did you refresh the browser after adding the new link?  We're not watching ConsoleLinks, so the Launcher section will only appear after a browser refresh.

Comment 2 Robb Hamilton 2019-11-05 15:38:58 UTC
> @Yadan, did you refresh the browser after adding the new link?  We're not watching ConsoleLinks, so the Launcher section will only appear after a browser refresh.

Disregard.  I misread the bug.  The Launcher section is not currently on the Namespace Overview.

Comment 4 Yadan Pei 2019-11-11 02:40:04 UTC
1. Create two ConsoleLinks, one targets all namespaces and the other targets specific namespace
$ cat > link1.yaml << EOF
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
  name: example-namespace-dashboard
spec:
  href: 'https://www.example.com'
  location: NamespaceDashboard
  text: Namespace Dashboard Link
  namespaceDashboard:
    namespaces:
      - default
EOF

$ cat > link2.yaml << EOF
apiVersion: console.openshift.io/v1
kind: ConsoleLink
metadata:
  name: example-namespace-dashboard-all
spec:
  href: 'https://www.example.com'
  location: NamespaceDashboard
  text: This appears in all Namespace Dashboard Link
EOF
$ oc create -f link1.yaml -f link2.yaml

2. Visit Home -> Project -> default, on project Dashboard we can see two links in Launcher section
3. Visit Administration -> Namepsace -> deafult, we can also see a Launcher section with two links too


Verified on 4.3.0-0.nightly-2019-11-10-185106

Comment 6 errata-xmlrpc 2020-01-23 11:10:52 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:0062