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

[v10.1.x] BrowseDashboards: Only remember the most recent expanded folder #74809

Merged
merged 1 commit into from Sep 13, 2023

Conversation

grafana-delivery-bot[bot]
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)
@grafana-delivery-bot grafana-delivery-bot bot requested review from a team as code owners September 13, 2023 10:02
@grafana-delivery-bot grafana-delivery-bot bot requested review from academo and removed request for a team September 13, 2023 10:02
@grafana-delivery-bot grafana-delivery-bot bot added this to the 10.1.x milestone Sep 13, 2023
@grafana-delivery-bot grafana-delivery-bot bot requested review from tskarhed and L-M-K-B and removed request for a team September 13, 2023 10:02
Copy link
Contributor

@JoaoSilvaGrafana JoaoSilvaGrafana 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

@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 bot 🤖

@ashharrison90 ashharrison90 merged commit 68e9926 into v10.1.x Sep 13, 2023
17 checks passed
@ashharrison90 ashharrison90 deleted the backport-74617-to-v10.1.x branch September 13, 2023 10:17
@zerok zerok modified the milestones: 10.1.x, 10.1.3 Sep 19, 2023
@zerok zerok modified the milestones: 10.1.3, 10.1.5 Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants