grafana/pkg/plugins/manager
Marcus Andersson 1cfd3f81fb
Plugins: Support for link extensions (#61663)
* added extensions to plugin.json and exposing it via frontend settings.

* added extensions to the plugin.json schema.

* changing the extensions in frontend settings to a map instead of an array.

* wip

* feat(pluginregistry): begin wiring up registry

* feat(pluginextensions): prevent duplicate links and clean up

* added test case for link extensions.

* added tests and implemented the getPluginLink function.

* wip

* feat(pluginextensions): expose plugin extension registry

* fix(pluginextensions): appease the typescript gods post rename

* renamed file and will throw error if trying to call setExtensionsRegistry if trying to call it twice.

* added reafactorings.

* fixed failing test.

* minor refactorings to make sure we only include extensions if the app is enabled.

* fixed some nits.

* Update public/app/features/plugins/extensions/registry.test.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update packages/grafana-runtime/src/services/pluginExtensions/registry.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update packages/grafana-runtime/src/services/pluginExtensions/registry.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Update public/app/features/plugins/extensions/registry.test.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

* Moved types for extensions from data to runtime.

* added a small example on how you could consume link extensions.

* renamed after feedback from levi.

* updated the plugindef.cue.

* using the generated plugin def.

* added tests for apps and extensions.

* fixed linting issues.

* wip

* wip

* wip

* wip

* test(extensions): fix up failing tests

* feat(extensions): freeze registry extension arrays, include type in registry items

* added restrictions in the pugindef cue schema.

* wip

* added required fields.

* added key to uniquely identify each item.

* test(pluginextensions): align tests with implementation

* chore(schema): refresh reference.md

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2023-02-07 17:20:05 +01:00
..
client Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
dashboards Plugins: Unexport PluginDir field from PluginDTO (#59190) 2022-12-02 13:46:55 +01:00
fakes Plugins: Add tailored interface for plugins licensing needs (#61045) 2023-01-18 18:02:54 +01:00
loader Plugins: Support for link extensions (#61663) 2023-02-07 17:20:05 +01:00
process Plugins: Fix plugin registered startup log line (#54634) 2022-09-02 14:01:52 +02:00
registry Plugins: Use public store instead of internal registry (#57631) 2022-10-27 18:44:28 +02:00
signature Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
store Plugins: Create single point of entry for adding / removing plugins (#55463) 2022-09-23 14:27:01 +02:00
testdata Plugins: Support for link extensions (#61663) 2023-02-07 17:20:05 +01:00
installer_test.go Plugins: Unexport PluginDir field from PluginDTO (#59190) 2022-12-02 13:46:55 +01:00
installer.go Plugins: Unexport PluginDir field from PluginDTO (#59190) 2022-12-02 13:46:55 +01:00
manager_integration_test.go RBAC: cascaded nested folder permissions for search v2 (#62608) 2023-02-06 17:38:15 +00:00