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

Feature: Use ui extension hooks where available #4765

Merged
merged 9 commits into from
Aug 13, 2024

Conversation

leventebalogh
Copy link
Contributor

What this PR does / why we need it:
This PR updates usage of plugin extensions APIs to take advantage of the new hooks API where available. In older versions we fallback to the currently used hook. This prevents an issue where due to the reactive registry the older APIs don't receive the full list of extensions. It also paves the way for frontend performance improvements in Grafana core.

Which issue(s) this PR fixes:
Related: https://github.com/grafana/grafana-community-team/issues/174

Special notes for your reviewer:
We would really appreciate some assistance in testing this PR in both the latest version of Grafana 11 and the minimum supported Grafana version.

@leventebalogh leventebalogh requested review from a team July 31, 2024 13:32
@leventebalogh leventebalogh self-assigned this Jul 31, 2024
@CLAassistant
Copy link

CLAassistant commented Jul 31, 2024

CLA assistant check
All committers have signed the CLA.

@leventebalogh leventebalogh force-pushed the leventebalogh/use-extension-hooks branch from ff266fc to f4e5c58 Compare July 31, 2024 13:34
@leventebalogh leventebalogh changed the title Extensions: Use hook instead of getter Feature: Use ui extension hooks where available Jul 31, 2024
@leventebalogh leventebalogh force-pushed the leventebalogh/use-extension-hooks branch from bc619de to 96af3dc Compare August 7, 2024 08:43
@leventebalogh leventebalogh added pr:no public docs Added to a PR that does not require public documentation updates pr:dependencies Added to a PR that bumps dependency version(s) release:patch PR will be added to "Other Changes" section of release notes labels Aug 7, 2024
@vstpme vstpme removed the request for review from a team August 7, 2024 09:51
@brojd
Copy link
Contributor

brojd commented Aug 7, 2024

It looks good in general but I want to test it properly just after hackathon + we need to disable deprecation/deprecation eslint rule for now (we've already created a dedicated task to replace deprecated components and then we will enable the eslint rule back). Does it sound ok

@brojd brojd added this pull request to the merge queue Aug 13, 2024
Merged via the queue into dev with commit 66f2faf Aug 13, 2024
21 checks passed
@brojd brojd deleted the leventebalogh/use-extension-hooks branch August 13, 2024 10:42
brojd added a commit that referenced this pull request Sep 18, 2024
**What this PR does / why we need it:**
This PR updates usage of plugin extensions APIs to take advantage of the
new hooks API where available. In older versions we fallback to the
currently used hook. This prevents an issue where due to the reactive
registry the older APIs don't receive the full list of extensions. It
also paves the way for frontend performance improvements in Grafana
core.

**Which issue(s) this PR fixes:**
Related: grafana/grafana-community-team#174

**Special notes for your reviewer:**
We would really appreciate some assistance in testing this PR in both
the latest version of Grafana 11 and the minimum supported Grafana
version.

---------

Co-authored-by: Dominik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:dependencies Added to a PR that bumps dependency version(s) pr:no public docs Added to a PR that does not require public documentation updates release:patch PR will be added to "Other Changes" section of release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants