dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

Resource search causes UI to reload

Open nwmac opened this issue 1 year ago • 1 comments

In any cluster, local or a downstream, explore the cluster.

Click on the search icon in the top right and then star tying 'service', you'll see something like:

image

Select the option 'Service Accounts'.

The UI will do a hard reload, rather than navigating to that view.

This is a regression - the UI should not hard-reload.

nwmac avatar Apr 24 '24 08:04 nwmac

Took a bit of tracking down, but was caused by https://github.com/rancher/dashboard/pull/10793. Reverting that commit results in no page reload.

richard-cox avatar Apr 24 '24 09:04 richard-cox

I removed dev-automation from this because it looks like it's actually going to be more difficult to automate than I would've thought.

We either need to rely on globals and private implementation details of VueRouter or we need to add extra runtime code to production in order to support gathering information (route history) to determine if we reloaded or navigated to a page.

I don't think either option is reasonable for the scope of this issue.

codyrancher avatar Jun 27 '24 03:06 codyrancher

GH action not running, so manually re-opening for manual test

nwmac avatar Jun 27 '24 17:06 nwmac

Confirmed that the reloading behavior is resolved when using the search function in both Local and and Downstream clusters.

rak-phillip avatar Jul 08 '24 17:07 rak-phillip