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.2.2] SaveDashboardPrompt: Reduce time to open drawer when many changes applied #78308

Merged
merged 2 commits into from
Nov 20, 2023

Conversation

ivanortegaalba
Copy link
Contributor

Backport f32f8a1 from #78283


What is this feature?

These changes improve the performance when clicking on the save toolbar button to open the drawer. Because the Auto-generate button was pre-generating messages based on changes no matter if the LLM plugin is enabled or not, the drawer was taking a long time for no reason.

Now, the button support receives the messages prop as a callback, so the component consumer can decide when to compose the messages, at rendering time or when clicking.

Why do we need this feature?

For long dashboards, when a change is made, generating the messages gets very expensive, and this blocks the drawer for some seconds before is displayed.

Performance monitoring showing the time it takes generating the messages

Who is this feature for?
This applies to any version after 10.2.0 where the dasghgpt feature toggle is enabled by default.

Which issue(s) does this PR fix?:

Fixes #78234

Special notes for your reviewer:

Please check that:

  • It works as expected from a user's perspective.

@ivanortegaalba ivanortegaalba added this to the 10.2.x milestone Nov 17, 2023
@ivanortegaalba ivanortegaalba requested a review from a team as a code owner November 17, 2023 09:12
@ivanortegaalba ivanortegaalba requested review from axelavargas and dprokop and removed request for a team November 17, 2023 09:12
Copy link
Contributor

@nmarrs nmarrs left a comment

Choose a reason for hiding this comment

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

@ivanortegaalba ivanortegaalba merged commit f0b77df into v10.2.x Nov 20, 2023
12 checks passed
@ivanortegaalba ivanortegaalba deleted the backport-78283-to-v10.2.x branch November 20, 2023 08:58
@ifrost ifrost modified the milestones: 10.2.x, 10.2.2 Nov 20, 2023
@margotphelps margotphelps changed the title [v10.2.x] SaveDashboardPrompt: Reduce time to open drawer when many changes applied [v10.2.2] SaveDashboardPrompt: Reduce time to open drawer when many changes applied Nov 20, 2023
@margotphelps
Copy link

Updated the title to indicate release version 10.2.2 as that is what was added to the release schedule.

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