Bug 2039770

Summary: Observe dashboard doesn't react on time-range changes after browser reload when perspective is changed in another tab
Product: OpenShift Container Platform Reporter: Christoph Jerolimov <cjerolim>
Component: Dev ConsoleAssignee: Vikram Raj <viraj>
Status: CLOSED ERRATA QA Contact: spathak <spathak>
Severity: medium Docs Contact:
Priority: high    
Version: 4.9CC: aos-bugs, jakumar, nmukherj, skontopo, viraj
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2053496 (view as bug list) Environment:
Last Closed: 2022-03-10 16:38:43 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:
Bug Depends On:    
Bug Blocks: 2053496    

Description Christoph Jerolimov 2022-01-12 12:07:47 UTC
Description of problem:
When the user opens the Observe > Dashboard in admin or developer perspective and switches the perspective in another tab, the observe dashboard doesn't load the right time-range from the browser URL and do not react on any time-range change.

This is an followup issue on https://bugzilla.redhat.com/show_bug.cgi?id=2013990

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

How reproducible:
Always

Steps to Reproduce:
1. Navigate to the Observe dashboard view
2. Select a dashboard
3. Change time range
4. Open another browser tab and switch the perspective
5. Go back to tab 1 and reload
6. Change the time range again

Actual results:
When reloading tab 1 the previously selected time range (which is part of the URL) wasn't used.

Changing the time range now reloads the chart but it shows always the last 30 minutes (or, I expect it shows the configuration from the other perspective).

Expected results:
Should also work fine if the perspective is changed in the meantime.

Additional info:
None

Comment 1 Christoph Jerolimov 2022-01-12 12:12:36 UTC
This bug report describes the issue skontopo found on GitHub https://github.com/openshift-knative/serverless-operator/pull/1242#issuecomment-1008944248

I recorded a short video that explains the problem. Because of its size, I could not attach it to Bugzilla, you can find and watch it here:

https://www.dropbox.com/s/6gpsk9ojel0chqy/explaining-dashboard-perspective-issue.mp4?dl=0

Comment 4 Christoph Jerolimov 2022-01-20 13:59:06 UTC
Verified on 4.10.0-0.nightly-2022-01-20-082726

Switching the perspective in another tab doesn't affect the observe page anymore. Also after the browser tab 1 is reloaded.

Comment 7 errata-xmlrpc 2022-03-10 16:38:43 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.10.3 security 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-2022:0056