Multi-cluster context intermittently displaying incorrect content
Markieta opened this issue · 6 comments
When opening multiple tabs/windows of GPM in different contexts, some tabs/windows will display content of a different (incorrect) context. The URL and selected context (from the drop-down menu) do not change when this occurs.
The following screenshot depicts cluster contexts legacy-dev
and legacy-prod
having the exact same set of constraints/violations (both displaying legacy-prod
content). Refreshing the legacy-dev
tab and waiting a few seconds for the constraints to update accordingly resolves this.
Hi Christopher!
Thanks for the report, while I try to replicate the issue can I ask you to try with the go
image tag (quay.io/sighup/gatekeeper-policy-manager:go
)? It uses the new backend written in go, I suspect the problem is how we use the browser storage to keep the state for the frontend, but I think it's worth trying.
No need to test the Go backend, I was able to replicate the problem with both the Python and the Go backends. I'm 99% sure that the issue is how we store the selected context in the frontend.
Hi @Markieta !
Would you mind testing with the image quay.io/sighup/gatekeeper-policy-manager:286f0d0a2a33a77bf10ca3138d453d5a536e408f
(built from the linked PR) if that fixes the issue for you?
thanks in advance
Yup, works great. Thanks for the fix!
awesome, thanks for the feedback!