Bug 1910859 - breadcrumbs doesn't use last namespace
Summary: breadcrumbs doesn't use last namespace
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.7.0
Assignee: David Taylor
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-25 09:10 UTC by Yadan Pei
Modified: 2021-02-24 15:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: When we switched Projects' in list view (if that was the last selected namespace/project). Consequence: Select 'All Projects' in project dropdown in list view, drill down into a details view, project dropdown changes to project of resource displayed in details page. Click sidebar nav menu for list view, or drill back up by clicking on breadcrumb to list view on details page, 'All Projects' is NOT restored, instead the details Project is selected on list view. Fix: We now store 'last_namespace' in sessionStorage of browswer (only persists for current tab) and use it to restore 'All Projects' in list views if that was previously selected. Note: any previously selected project will be restored when navigating to list view, not just 'All Projects'. Result: The last selected project on a list view will be restored when navigating back to said list view.
Clone Of:
Environment:
Last Closed: 2021-02-24 15:48:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7714 0 None closed Bug 1910859: breadcrumbs and nav doesn't use last namespace 2021-01-18 05:59:50 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:48:48 UTC

Description Yadan Pei 2020-12-25 09:10:50 UTC
Description of problem:
With https://issues.redhat.com/browse/CONSOLE-2228, breadcrumbs and resource nav items were updated to use the last namespace (if available) when generating the path, this is not working in 4.7

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-12-21-131655

How reproducible:
Always

Steps to Reproduce:
1. navigate to Operators -> Installed Operators page, by default 'All Projects' is selected
2. Click on the first operator in Installed Operators list table, it will redirect user Operator Details page with specific namespace selected, such as 'openshift-logging' 
3. Click Operators -> Installed Operators menu again, check project selector dropdown

Actual results:
3. Project selector is selected 'openshift-logging' 

Expected results:
3. 'All Projects' should be selected since 'All Projects' is the last namespace

Additional info:

Comment 1 Jakub Hadvig 2021-01-04 08:55:41 UTC
Dave please evaluate what the Release Target should be set for. Until that its unset.
I know that youhave been searching for some knowledge on the breadcrumb so assigning to you, in case there have been any changes in the breadcrumbs codebase.

Comment 3 Yadan Pei 2021-01-18 06:06:58 UTC
1. Visit Workloads -> Deployments -> select 'All Projects', click on one deployment then click on the breadcrumb link Deployments, the project selector is still 'All Projects'
2. Visit Operators -> Installed Operators -> click on one installed operator , then click Operators -> Installed Operators again, the project selector is still 'All Projects'

not the nav and breadcrumb link use last namespace, verified on 4.7.0-0.nightly-2021-01-17-153039

Comment 6 errata-xmlrpc 2021-02-24 15:48: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.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


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