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

Plugin: Skip preloading disabled app plugins #63083

Merged
merged 1 commit into from
Feb 8, 2023
Merged

Conversation

mckn
Copy link
Contributor

@mckn mckn commented Feb 8, 2023

What is this feature?
This PR will prevent app plugins from being preloaded if they are disabled. Something that we realized while working on the #61663 but didn't want to do it within the same PR.

Why do we need this feature?
Preloading disabled plugins will only slow down the initial load of Grafana.

Who is this feature for?
End users and plugin developers

Special notes for your reviewer:
The frontend will only preload app plugins with the preload: true value passed in the grafana settings. In this PR we will only return preload: true if the app plugin is enabled and has preload: true specified in plugin.json.

@mckn mckn self-assigned this Feb 8, 2023
@mckn mckn added this to the 9.5.0 milestone Feb 8, 2023
@mckn mckn marked this pull request as ready for review February 8, 2023 11:18
@mckn mckn requested a review from a team as a code owner February 8, 2023 11:18
@mckn mckn requested review from sakjur, mildwonkey, ying-jeanne, torkelo, ryantxu and marefr and removed request for a team February 8, 2023 11:18
@mckn mckn merged commit ace4175 into main Feb 8, 2023
@mckn mckn deleted the mckn/plugin-preload branch February 8, 2023 13:41
ryantxu pushed a commit that referenced this pull request Mar 2, 2023
will not preload app plugins that is disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants