Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v9.5.x] BrowseDashboards: Only remember the most recent expanded folder #74817

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

joshhunt
Copy link
Contributor

Backport 5cb7eb5 from #74617


What is this feature?

The old Browse Dashboards UI remembers opened folders and automatically loads their children when Browse or Search is opened. If the user has opened many folders, this can saturate the requests the frontend makes and prevents new requests (such as one for the user's search) from completing quickly.

This PR changers the old Browse Dashboards UI to only remember the last folder opened.

Why do we need this feature?

So the old Browse Dashboards UI performance does not get worse the more someone uses it.

Who is this feature for?

Everyone who isn't using new Browse Dashboards UI

Which issue(s) does this PR fix?:

Fixes #59543

Special notes for your reviewer:

Becuase this is in the old UI which we no longer dog food, we must manually test this throughly.

This is intended to be backported.

* BrowseDashboards: Only remember the most recent expanded folder

* set to null

* cleanup

* only clear removed folder if it was the most recently opened

* comments + variable

(cherry picked from commit 5cb7eb5)
Copy link
Contributor

@ashharrison90 ashharrison90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

Copy link
Contributor

@eledobleefe eledobleefe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on local and works 🎉

@joshhunt joshhunt merged commit 91e9369 into v9.5.x Sep 13, 2023
17 checks passed
@joshhunt joshhunt deleted the backport-74617-to-v9.5.x branch September 13, 2023 11:02
@zerok zerok modified the milestones: 9.5.x, 9.5.11 Sep 19, 2023
@zerok zerok modified the milestones: 9.5.11, 9.5.13 Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

4 participants